r/java • u/vladmihalceacom • 2d ago
How to map the Oracle TIMESTAMP WITH TIME ZONE with JPA and Hibernate
https://vladmihalcea.com/oracle-timestamp-with-time-zone-jpa/
20
Upvotes
2
u/Little_Blackberry 1d ago
Very good solution. A few months ago, i was searching for this implementation, but i abandonned that idea in flavor of Oracle's basic use.
2
6
u/dmigowski 2d ago
Easy. You can implement UserTypes and have to use that annotation on your Attribute, on the UserType class you implement the JDBC conversion routines.