[Hibernate-JIRA] Created: (HHH-4899) Type not supported: org.hibernate.type.TimestampType
by Midhun (JIRA)
Type not supported: org.hibernate.type.TimestampType
----------------------------------------------------
Key: HHH-4899
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4899
Project: Hibernate Core
Issue Type: Bug
Components: envers
Environment: Hibernate Version 3.3.1 GA on Oracle 10g.
Reporter: Midhun
I have included the latest version of Envers (1.2.2) into our Hibernate & Spring application. On Server(Tomcat) startup, the following error occurs:
Caused by: org.hibernate.MappingException: Type not supported: org.hibernate.type.TimestampType
at org.hibernate.envers.configuration.metadata.IdMetadataGenerator.addIdProperties(IdMetadataGenerator.java:71)
at org.hibernate.envers.configuration.metadata.IdMetadataGenerator.addId(IdMetadataGenerator.java:107)
at org.hibernate.envers.configuration.metadata.AuditMetadataGenerator.generateFirstPass(AuditMetadataGenerator.java: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.event.AuditEventListener.initialize(AuditEventListener.java:315)
at org.hibernate.event.EventListeners$1.processListener(EventListeners.java:198)
--
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....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 7 months
[Hibernate-JIRA] Created: (HHH-5031) org.hibernate.MappingException: Type not supported: org.hibernate.type.TimestampType
by Tim Uy (JIRA)
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....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 7 months