Also, here is the code for my SysUser class (Entity bean generated by the program from my sql server database):
and my UserSessionBeans class:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package BusinessSessionBeans;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
*
* @author Corina
*/
@Stateless
public class UserSessionBean implements UserSessionBeanLocal {
@PersistenceContext
EntityManager em;
public UserSessionBean() { }
// @Override
// public List findAll() {
// List users = em.createQuery("SELECT OBJECT(o) FROM SysUser o").getResultList();
// return users;
// }
// Add business logic below. (Right-click in editor and choose
// "Insert Code > Add Business Method")
}