[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5031) org.hibernate.MappingException: Type not supported: org.hibernate.type.TimestampType

Tim Uy (JIRA) noreply at atlassian.com
Tue Mar 23 13:06:31 EDT 2010


org.hibernate.MappingException: Type not supported: org.hibernate.type.TimestampType
------------------------------------------------------------------------------------

                 Key: HHH-5031
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5031
             Project: Hibernate Core
          Issue Type: Bug
          Components: envers
    Affects Versions: 3.3.1
         Environment: Hibernate 3.3.1, Envers 1.2.2, MSSql Server 2005
            Reporter: Tim Uy
         Attachments: testcase.zip

We are getting the following exception:

org.hibernate.MappingException: Type not supported: org.hibernate.type.TimestampType
        at org.hibernate.envers.configuration.metadata.IdMetadataGenerator.addIdProperties(IdMetadataGenerator.java:7
        at org.hibernate.envers.configuration.metadata.IdMetadataGenerator.addId(IdMetadataGenerator.java:107)
        at org.hibernate.envers.configuration.metadata.AuditMetadataGenerator.generateFirstPass(AuditMetadataGenerato
ava:380)
        at org.hibernate.envers.configuration.EntitiesConfigurator.configure(EntitiesConfigurator.java:102)
        at org.hibernate.envers.configuration.AuditConfiguration.<init>(AuditConfiguration.java:86)
        at org.hibernate.envers.configuration.AuditConfiguration.getFor(AuditConfiguration.java:99)
        at org.hibernate.envers.ant.JPAConfigurationTaskWithEnvers.doConfiguration(JPAConfigurationTaskWithEnvers.jav
6)
        at org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:55)
        at org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:302)
        at org.hibernate.tool.ant.Hbm2DDLExporterTask.execute(Hbm2DDLExporterTask.java:45)

After doing some research, it seems like if the table doesn't have a primary key, then it throws the exception above.

I've attached test case as requested.



-- 
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