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

  • Date and Time Mappings with Hibernate and JPA
    Hibernate Beginner | Hibernate 5 | Hibernate 6

    Date and Time Mappings with Hibernate and JPA

    ByThorben Janssen

    Databases support various data types to store date and time information. The most commonly used ones are: You can map all of them with JPA and Hibernate. But you need to decide to which Java type you want to map your database column. The Java language supports a bunch of classes to represent date and…

    Read More Date and Time Mappings with Hibernate and JPAContinue

  • Hibernate 6 | Hibernate Advanced

    Implement your primary key as a Record using an IdClass

    ByThorben Janssen

    There are various reasons to implement your own primary key representation. Your primary key may consist of multiple attributes. Or you’re following domain-driven design principles and want to use a custom type to add semantic meaning to it. Implementing a record and mapping it as an IdClass seems evident in these situations. A record is efficient, easy to implement, immutable…

    Read More Implement your primary key as a Record using an IdClassContinue

  • How to generate DAOs and queries with Hibernate
    Hibernate Advanced | Hibernate 6

    How to generate DAOs and queries with Hibernate

    ByThorben Janssen

    Executing a query with Hibernate requires several lines of repetitive boilerplate code, and many developers have complained about that for years. You have to instantiate a Query object and set all bind parameter values before you can finally execute the query. Since version 6.3.1, Hibernate has solved this with an improved metamodel generator that provides…

    Read More How to generate DAOs and queries with HibernateContinue

  • TimezoneStorageType – Hibernate’s improved timezone mapping
    Hibernate Advanced | Hibernate 6

    TimezoneStorageType – Hibernate’s improved timezone mapping

    ByThorben Janssen

    Working with timestamps with timezone information has always been a struggle. Since Java 8 introduced the Date and Time API, OffsetDateTime and ZonedDateTime have become the most obvious and commonly used types to model a timestamp with timezone information. And you might expect that choosing one of them should be the only thing you need…

    Read More TimezoneStorageType – Hibernate’s improved timezone mappingContinue

  • 8 things you need to know when migrating to Hibernate 6.x
    Hibernate Advanced | Hibernate 6

    8 things you need to know when migrating to Hibernate 6.x

    ByThorben Janssen

    Hibernate 6 has been released for a while, and the latest Spring Data JPA version includes it as a dependency. So, it’s no surprise that more and more developers want to migrate their applications to the latest Hibernate version. As you’re reading this article, you’re probably one of them. And you might ask yourself what…

    Read More 8 things you need to know when migrating to Hibernate 6.xContinue

Page navigation

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