Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

JPA%20Interview%20Questions%20and%20Answers

Question: Why to use JPA?
Answer:
  • JPA is the standard, and standards are good!
  • Using JPA does not tie you to Hibernate.
  • JPA gives you most of the features of plain old Hibernate, except:
  • No criteria queries in JPA 2.0. Criteria query is a neat feature of Hibernate that constructs queries using Java-based combinators instead of the alternate query language, getting the benefit of IntelliSense and Eclipse's refactoring tools.
  • JPA doesn't have Hibernate's DeleteOrphan cascade type.
  • Delete Orphan is a useful annotation that directs Hibernate to delete entities in a collection if the parent is deleted, preventing orphaning.
  • JPA doesn't have an equivalent to Hibernate's ScrollableResults.
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook