]
Gail Badner updated HHH-6188:
-----------------------------
Assignee: (was: Gail Badner)
Fix Version/s: (was: 3.6.5)
(was: 4.0.0.Beta1)
java.util.UUID cannot be used for Ids
-------------------------------------
Key: HHH-6188
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6188
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.6.3
Environment: Hibernate 3.6.3Final, Oracle 9i
Reporter: Thomas Oellrich
Attachments: Foo.java, foo.sql, fullstacktrace.txt
Hibernate successfully maps java.util.UUID to a database field defined as raw(16) in
Oracle. However, as soon as I add the @Id annotation from the JPA-API, I get the following
error:
Caused by: org.hibernate.MappingException: No Dialect mapping for JDBC type: -2
at org.hibernate.dialect.TypeNames.get(TypeNames.java:77)
at org.hibernate.dialect.TypeNames.get(TypeNames.java:100)
at org.hibernate.dialect.Dialect.getTypeName(Dialect.java:296)
at org.hibernate.mapping.Column.getSqlType(Column.java:208)
at org.hibernate.mapping.Table.sqlTemporaryTableCreateString(Table.java:371)
at
org.hibernate.mapping.PersistentClass.prepareTemporaryTables(PersistentClass.java:774)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:272)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1845)
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:906)
I'm using org.hibernate.dialect.Oracle9iDialect.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: