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

  • Hibernate Tips: How to perform different validations for persist and update
    Hibernate Tips

    Hibernate Tips: How to perform different validations for persist and update

    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’m using BeanValidation to validate my entities automatically before they get persisted and updated. I defined different ValidationGroups for…

    Read More Hibernate Tips: How to perform different validations for persist and updateContinue

  • Best Practices for Many-to-Many Associations with Hibernate and JPA
    Hibernate Advanced

    Best Practices for Many-to-Many Associations with Hibernate and JPA

    ByThorben Janssen

    Many-to-Many associations are one of the most commonly used associations with JPA and Hibernate. You can find lots of examples for them in the real world, and you can map them with JPA and Hibernate as a uni- or bidirectional association in your domain model. But you probably also know that these mappings provide several…

    Read More Best Practices for Many-to-Many Associations with Hibernate and JPAContinue

  • 6 Hibernate Best Practices for Readable and Maintainable Code
    Hibernate | JPA

    6 Hibernate Best Practices for Readable and Maintainable Code

    ByThorben Janssen

    Implementing a readable and maintainable persistence layer with Hibernate isn’t as easy as it might seem. It often starts with just a few annotations on some Java classes and a small number of Strings containing things like JPQL or native query statements and references to attributes, queries and bind parameter names. As the project grows, you implement more entity…

    Read More 6 Hibernate Best Practices for Readable and Maintainable CodeContinue

  • Can you use Hibernate/EclipseLink/JPA for your microservice?
    JPA | Hibernate

    Can you use Hibernate/EclipseLink/JPA for your microservice?

    ByThorben Janssen

    Everyone is building microservices. For the last 1.5 years, it was the dominant architectural style for all new software projects. And while a microservice architecture should make the implementation of each service easier, it also introduces new challenges. That’s especially the case for the persistence layer. So, it’s no surprise that I had lots of…

    Read More Can you use Hibernate/EclipseLink/JPA for your microservice?Continue

  • Access Strategies in JPA and Hibernate – Which is better, field or property access?
    Hibernate Beginner | JPA

    Access Strategies in JPA and Hibernate – Which is better, field or property access?

    ByThorben Janssen

    The access strategy defines how your JPA implementation, e.g., Hibernate or EclipseLink, access your entity attributes. You can choose between field-based access and property-based access: If you use field-based access, your JPA implementation uses reflection to read or write your entity attributes directly. It also expects that you place your mapping annotations on your entity attributes….

    Read More Access Strategies in JPA and Hibernate – Which is better, field or property access?Continue

Page navigation

Previous PagePrevious 1 2 3 4 5 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