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

Best Practice

  • 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

  • 6 Performance Pitfalls when using Spring Data JPA
    Spring Data JPA

    6 Performance Pitfalls when using Spring Data JPA

    ByThorben Janssen

    Thanks to its ease of use, Spring Data JPA is an incredibly popular persistence framework. If developers have something to complain about, they usually criticize object-relational mapping in general or the risk of performance problems. And while you can, of course, criticize the concept of object-relational mapping, you shouldn’t blame Spring Data JPA for your…

    Read More 6 Performance Pitfalls when using Spring Data JPAContinue

  • LazyInitializationException – What it is and the best way to fix it
    Hibernate | Hibernate Performance

    LazyInitializationException – What it is and the best way to fix it

    ByThorben Janssen

    The LazyInitializationException is one of the most common exceptions when working with Hibernate. There are a few easy ways to fix it. But unfortunately, you can also find lots of bad advice online. The proclaimed fixes often replace the exception with a hidden problem that will cause trouble in production. Some of them introduce performance…

    Read More LazyInitializationException – What it is and the best way to fix itContinue

  • Hibernate Tip: Many-to-Many Association with additional Attributes
    Hibernate Tips

    Hibernate Tip: Many-to-Many Association with additional Attributes

    ByThorben Janssen

    Hibernate Tips is a series of posts in which I describe a quick and easy solution for common Hibernate questions. If you have a question for a future Hibernate Tip, please post a comment below. Question: I got several questions, like the following one by Carme, about the mapping of a many-to-many association that contains…

    Read More Hibernate Tip: Many-to-Many Association with additional AttributesContinue

  • Hibernate Tip: Using LEFT JOIN and FETCH JOIN in a CriteriaQuery
    Hibernate Tips

    Hibernate Tip: Using LEFT JOIN and FETCH JOIN in a CriteriaQuery

    ByThorben Janssen

    Hibernate Tips is a series of posts in which I describe a quick and easy solution for common Hibernate questions. If you have a question for a future Hibernate Tip, please post a comment below. Question: In one of my previous Hibernate Tips, I explained the difference between a JOIN, a LEFT JOIN, and a…

    Read More Hibernate Tip: Using LEFT JOIN and FETCH JOIN in a CriteriaQueryContinue

Page navigation

1 2 3 … 6 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