[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-6188) java.util.UUID cannot be used for Ids
Steve Ebersole (JIRA)
noreply at atlassian.com
Fri May 6 11:43:59 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Ebersole updated HHH-6188:
--------------------------------
Assignee: Gail Badner
Fix Version/s: 4.0.0.Beta1
3.6.5
This is likely just an issue with the {{Dialect}}. Not at computer so can't look up what type code -2 is supposed to indicate.
> 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
> Assignee: Gail Badner
> Fix For: 3.6.5, 4.0.0.Beta1
>
> 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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list