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

Hibernate 6

  • How to generate UUIDs as primary keys with Hibernate
    Hibernate Advanced | Hibernate 5 | Hibernate 6

    How to generate UUIDs as primary keys with Hibernate

    ByThorben Janssen

    Most developers prefer numerical primary keys because they are efficient to use and easy to generate. But that doesn’t mean that a primary key has to be a number. UUIDs, for example, have gained some popularity over recent years. The main advantage of a UUID is its (practical) global uniqueness which provides a huge advantage…

    Read More How to generate UUIDs as primary keys with HibernateContinue

  • Hibernate-specific extensions to the Criteria API
    Hibernate Advanced | Hibernate 6

    Hibernate-specific extensions to the Criteria API

    ByThorben Janssen

    Most developers know that the JPA specification defines the string-based JPQL query language and that Hibernate extends it to support things like database-specific functions, window functions, and set-based operations. But most developers don’t know that since version 6, Hibernate has done the same for JPA’s Criteria API. Extending an API is, of course, a little more complex…

    Read More Hibernate-specific extensions to the Criteria APIContinue

  • Sequence naming strategies in Hibernate 6
    Hibernate 6 | Hibernate Advanced

    Sequence naming strategies in Hibernate 6

    ByThorben Janssen

    Hibernate 6 introduced a new configuration parameter and an interface to define the implicit naming strategy for database sequences and tables used to generate primary key values. When you migrate an existing application to Hibernate 6, you quickly recognize that change because the default naming strategy has changed. Due to that, Hibernate might try using…

    Read More Sequence naming strategies in Hibernate 6Continue

  • @Incubating features in Hibernate 6
    Hibernate Advanced | Hibernate 6

    @Incubating features in Hibernate 6

    ByThorben Janssen

    If you tried Hibernate 6, you might have recognized the new @Incubating annotation. The Hibernate team introduces it to tell users about new APIs and interfaces that might still change. That’s a great addition because most developers expect new APIs and features to be stable after they are part of a final release. In general, that…

    Read More @Incubating features in Hibernate 6Continue

  • Hibernate’s ResultTransformer in Hibernate 4, 5 & 6
    Hibernate | Hibernate 5 | Hibernate 6 | Hibernate Advanced

    Hibernate’s ResultTransformer in Hibernate 4, 5 & 6

    ByThorben Janssen

    Hibernate implements JPA’s standardized constructor expressions and @SqlResultSetMappings to map the results of your queries. And it also supports proprietary ResultTransformers. They provide a powerful and flexible way to map the result of your JPQL, Criteria, and native SQL query to a specific object structure. This can be entity or DTO objects, java.util.List or java.util.Map…

    Read More Hibernate’s ResultTransformer in Hibernate 4, 5 & 6Continue

Page navigation

Previous PagePrevious 1 2 3 4 Next PageNext

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