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

Mapping

Benefits of @Repeatable annotations in Hibernate 5.2
Hibernate Advanced | Hibernate 5

Benefits of @Repeatable annotations in Hibernate 5.2

ByThorben Janssen

Hibernate 5.2 introduced several changes based on Java 8 features. In previous posts, I showed you how to get query results as a Stream and the support of DateTime API classes and Optional. In this post, I will have a look at a small change to some Hibernate annotations. Some of them are now @Repeatable…

Read More Benefits of @Repeatable annotations in Hibernate 5.2Continue

Hibernate Tips: Calculate entity attributes with @Formula
Hibernate Tips

Hibernate Tips: Calculate entity attributes with @Formula

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: The value of one of my entity attribute gets calculate by an SQL function. How can I map that…

Read More Hibernate Tips: Calculate entity attributes with @FormulaContinue

How to use Java 8’s Optional with Hibernate
Hibernate Advanced | Hibernate 5

How to use Java 8’s Optional with Hibernate

ByThorben Janssen

Java 8 introduced Optional<T> as a container object which may contain null values. It’s often used to indicate to a caller that a value might be null and that it need to be handled to avoid NullPointerExceptions. Sounds pretty useful, right? So why not use them in your persistence layer for optional entity attributes or…

Read More How to use Java 8’s Optional with HibernateContinue

Hibernate Tips: How to use a custom database sequence
Hibernate Tips

Hibernate Tips: How to use a custom database sequence

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.

Read More Hibernate Tips: How to use a custom database sequenceContinue

Hibernate Tips: How to order the elements of a relationship
Hibernate Tips

Hibernate Tips: How to order the elements of a relationship

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 order the elements of an annotate relationship without writing my own query?

Read More Hibernate Tips: How to order the elements of a relationshipContinue

Page navigation

Previous PagePrevious 1 … 20 21 22 23 24 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