Hibernate Tips: How to map an entity attribute to an Optional
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: Some of my entity attributes are optional. Is there any way to map them to an Optional<T>?