Mapping A Boolean To 'Y' Or 'N' Using Hibernate
Join the DZone community and get the full member experience.
Join For Free
@org.hibernate.annotations.Type(type = "yes_no")
private boolean deleted;
Hibernate
Opinions expressed by DZone contributors are their own.
Trending
-
Avoiding Pitfalls With Java Optional: Common Mistakes and How To Fix Them [Video]
-
RBAC With API Gateway and Open Policy Agent (OPA)
-
Seven Steps To Deploy Kedro Pipelines on Amazon EMR
-
Tech Hiring: Trends, Predictions, and Strategies for Success
Comments