Less than 42 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!

Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Viggo Navarsete
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.


  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!