I have following JPA entity:
@Entity
public class Notification {
private Duration deliveryTimeLimit;
public Duration getDeliveryTimeLimit() {
return deliveryTimeLimit;
}
public void setDeliveryTimeLimit(Duration deliveryTimeLimit) {
this.deliveryTimeLimit = deliveryTimeLimit;
}
}
I'd like to store Duration to database.
What datatype should I use in Oracle database?
When I choose NUMBER
, then I have to specify 1 minute
as 60000000000 nanoseconds
while loading data from csv file.