Skip to content
Thorben Janssen
  • BlogExpand
    • Tutorials
    • Hibernate Tips
    • Video Tutorials
  • Persistence Hub
  • Workshops
  • Consulting
  • Book
  • AboutExpand
    • About
    • Talks
    • Contact
Sign In
Thorben Janssen

JPA2.1

  • JPA Entity Graphs: How to Define and Use a @NamedEntityGraph
    JPA | Hibernate Performance | JPA2.1

    JPA Entity Graphs: How to Define and Use a @NamedEntityGraph

    ByThorben Janssen

    Lazy loading is often an issue with JPA. You have to define at the entity if you want to use FetchType.LAZY (default) or FetchType.EAGER to load the relation and this mode is always used. FetchType.EAGER is only used if we want to always load the relation. FetchType.LAZY is used in almost all of the cases…

    Read More JPA Entity Graphs: How to Define and Use a @NamedEntityGraphContinue

  • JPA Attribute Converter – The better way to persist enums
    Hibernate Advanced | JPA2.1

    JPA Attribute Converter – The better way to persist enums

    ByThorben Janssen

    JPA provides 2 standard mappings for enums, but both have serious downsides. Using the @Enumerated annotation, you can use EnumType.ORDINAL or EnumType.STRING to map the enum value to its database representation. The ordinal of an Enum depends on the ordering of its values and can create problems if we need to add new ones. The…

    Read More JPA Attribute Converter – The better way to persist enumsContinue

  • Criteria Update/Delete – The easy way to implement bulk operations with JPA2.1
    JPA | Hibernate Performance | JPA2.1

    Criteria Update/Delete – The easy way to implement bulk operations with JPA2.1

    ByThorben Janssen

    JPA 2.1 added a list of nice features to the specification. One of them is the support for bulk update and delete operations in the Criteria API. We will have a look at the new CriteriaUpdate and CriteriaDelete classes in this article. If you like to learn more about the other features added in JPA 2.1, have…

    Read More Criteria Update/Delete – The easy way to implement bulk operations with JPA2.1Continue

Page navigation

Previous PagePrevious 1 … 3 4 5

Join the Newsletter

Join 10k+ subscribers to get a persistence tip every weekday.

I will collect, use and protect your data in accordance with my privacy policy.

Level up your skills!

  • In-depth courses
  • Expert sessions
  • Monthly persistence news
Learn more!
Twitter YouTube Github Facebook Xing Linkedin
  • Disclaimer
  • Privacy Policy
  • Terms of Service
  • Imprint
  • Contact
  • Change privacy settings
  • Privacy settings history
  • Revoke consents

© 2025 Thorben Janssen, all rights reserved.

  • Blog
    • Tutorials
    • Hibernate Tips
    • Video Tutorials
  • Persistence Hub
  • Workshops
  • Consulting
  • Book
  • About
    • About
    • Talks
    • Contact
Search