How to selectively fetch items from a certain table via JPA

Posted by Samuel on Stack Overflow See other posts from Stack Overflow or by Samuel
Published on 2010-05-15T09:12:12Z Indexed on 2010/05/15 10:04 UTC
Read the original article Hit count: 250

Filed under:
|
|
|

Environment: JPA 1, Hibernate 3.3.x

I have an JPA entity class (User), how do I selectively fetch member variables say (first_name, last_name) instead of fetching all user attributes using the JPA api.

© Stack Overflow or respective owner

Related posts about jpa

Related posts about hibernate