How to select particular column in findAll() method
Balachandran Vijayarajan
Greenhorn
Joined: Jun 23, 2005
Posts: 29
posted
0
Hi All,
Its possible to select particular column in EJB QL in findAll() method. For example "select a.firstName,a.userId,a.lastName from EntitlementUserBean a" - here "EntitlementUserBean" entity bean name.
No, because those are what is called Projection Queries, so in that case, then there would be no way to determine what type of object to create. In EJBs for Entity beans, it has to bring back all the fields of the entity beans populated. Now in EJB 3.0 and JPA, you can create project querires that create other types of objects that aren't entity beans.