File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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?