Project

General

Profile

task #6716

Better handling for UserTypes in hibernate

Added by Andreas Müller over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
New
Category:
cdmlib
Target version:
Start date:
06/10/2017
Due date:
% Done:

0%

Severity:
normal

Description

Maybe there is a better way now to use UserTypes. I got the idea when reading

https://developer.jboss.org/message/857178#857178

"This, however, has negative side-effects because new Hibernate 4 features are not present while running hbm2ddl.

Thanks to the new data type auto-registration in Hibernate 4 (put to work by Usertype for Joda Time data types) we were able to remove all @Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime") annotations from our entities. Now while running hbm2ddl in Maven "works" the generated schema doesn't contain proper data type declarations because Hibernate 3.6 doesn't know about Joda Time."

We should check this.

History

#1 Updated by Andreas Müller over 1 year ago

  • Tracker changed from bug to task

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)