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

Generate Primary Keys Using JPA and Hibernate
JPA | Hibernate Beginner

Generate Primary Keys Using JPA and Hibernate

ByThorben Janssen

How do you get the primary key values in your application? Do you use natural keys or do you generate technical IDs? I prefer to generate simple, numerical, technical IDs like you can see in the following code snippet instead of using natural keys which often require the combination of multiple attributes. @Id private Long…

Read More Generate Primary Keys Using JPA and HibernateContinue

Hibernate Tips: How to map a view with Hibernate
Hibernate Tips

Hibernate Tips: How to map a view with Hibernate

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 you like me to answer, please leave a comment below. Question: How can I map a read-only database view with Hibernate?

Read More Hibernate Tips: How to map a view with HibernateContinue

Should you use JPA for your next project?
JPA | Hibernate Beginner

Should you use JPA for your next project?

ByThorben Janssen

Do JPA and Hibernate really fit the project you’re about to start? This important question gets not asked often enough! And if you don’t think about it in the beginning, it will be difficult to change your mind after the project starts. Most often, the persistence framework gets selected based on personal preferences. And while…

Read More Should you use JPA for your next project?Continue

Hibernate Tips: Use the QueryCache to avoid additional queries
Hibernate Tips

Hibernate Tips: Use the QueryCache to avoid additional queries

ByThorben Janssen

Hibernate Tips is a new series of posts in which I describe a quick and easy solution for common Hibernate questions. If you have a question you like me to answer, please leave a comment below. Question: Hibernate does not use the first- and second-level for queries. Is there any way to cache the result…

Read More Hibernate Tips: Use the QueryCache to avoid additional queriesContinue

Hibernate Tips: How to log SQL statements and their parameters
Hibernate Tips

Hibernate Tips: How to log SQL statements and their parameters

ByThorben Janssen

Hibernate Tips is a new series of posts in which I describe a quick and easy solution for common Hibernate questions. If you have a question you like me to answer, please leave a comment below. Question: How do you configure Hibernate so that it writes the executed SQL statements and used bind parameters to…

Read More Hibernate Tips: How to log SQL statements and their parametersContinue

Page navigation

Previous PagePrevious 1 … 47 48 49 50 51 … 54 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