This week's book giveaway is in the OCAJP forum. We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line! See this thread for details.
javax.persistence equivalent to org.hibernate.annotations Fetch and FetchMode.SUBSELECT?
posted 5 years ago
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.