JPA Tips: How to map a Duration attribute
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 leave a comment below. Question: JPA 2.2 didn’t add support for java.time.Duration. How can I map an attribute of that type with JPA?