I am trying to execute namedquery
@NamedQuery(name="getEmployeeDetails",query="select e.username,e.email,e.image,e.firstname,e.lastname from Employee e where e.empid=?1")
Now, when I execute this request in an EJB 3.0 Bean session, what the object should be, I should return. I tried to return a list returning a vector that throws a class exception. The employee table contains fields such as password and other sensitive data that I do not want to receive. So I do not use select e from Employee e . I am learning JPA, can anyone help.
source share