--- /dev/null
+/*
+ * Copyright (C) 2023 Roland Häder<roland@mxchange.org>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jjobs.model.skill;
+
+import java.text.MessageFormat;
+import java.util.List;
+import javax.ejb.Stateless;
+import javax.persistence.Query;
+import org.mxchange.jjobs.enterprise.BaseJobsEnterpriseBean;
+
+/**
+ * A user EJB
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Stateless (name = "skill", description = "A bean handling the user data")
+public class JobsSkillSessionBean extends BaseJobsEnterpriseBean implements SkillSessionBeanRemote {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 542_145_358_001L;
+
+ /**
+ * Default constructor
+ */
+ public JobsSkillSessionBean () {
+ // Call super constructor
+ super("jms/jjobs-queue-factory", "jms/jjobs-email-queue"); //NOI18N
+ }
+
+ @Override
+ @SuppressWarnings ("unchecked")
+ public List<Skillable> fetchAllSkills () {
+ // Trace message
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.allSkills: CALLED!", this.getClass().getSimpleName())); //NOI18N
+
+ // Get named query
+ final Query query = this.getEntityManager().createNamedQuery("AllSkills", JobSkill.class); //NOI18N
+
+ // Get result
+ final List<Skillable> users = query.getResultList();
+
+ // Trace message
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.allSkills: users.size()={1} - EXIT!", this.getClass().getSimpleName(), users.size())); //NOI18N
+
+ // Return full list
+ return users;
+ }
+
+}