This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes javax.persistence equivalent to  org.hibernate.annotations Fetch and FetchMode.SUBSELECT? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "javax.persistence equivalent to  org.hibernate.annotations Fetch and FetchMode.SUBSELECT?" Watch "javax.persistence equivalent to  org.hibernate.annotations Fetch and FetchMode.SUBSELECT?" New topic
Author

javax.persistence equivalent to org.hibernate.annotations Fetch and FetchMode.SUBSELECT?

Viggo Navarsete
Ranch Hand

Joined: Feb 02, 2009
Posts: 42
Hi,

I'm porting an application to Java EE 6 and as part of that also porting the domain model which is annotated with some hibernate-annotations specific annotations.

I have this today:


Can I replace the @Fetch and @FetchMode.SUBSELECT with an annotation from the javax.persistence package that gives me the same result? I know this exists, javax.persistence.criteria.Fetch, but I havent found anything like FetchMode.SUBSELECT.

Anyone?

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.persistence equivalent to org.hibernate.annotations Fetch and FetchMode.SUBSELECT?
 
Similar Threads
EJB 3.0 invasive?
hibernate
Hibernate Annotations
1..n and 0..n mapping
Invalid composite primary key specification