AnyType Property not supported.
-------------------------------
Key: HHH-3855
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3855
Project: Hibernate Core
Issue Type: Bug
Components: envers
Environment: Hibernate 3.4.0-SNAPSHOT, hibernate - envers from trunk
Reporter: Amar Singh
Attachments: anytype.zip
If you have a mapping file with "anytype" configuration, the initialization of
configugration says anytype not supported.
Exception thrown is:
Type not supported for auditing: org.hibernate.type.AnyType, on entity
org.hibernate.envers.test.integration.onetoone.bidirectional.BidirectionalRefIngPK,
property 'data'.
at
org.hibernate.envers.configuration.metadata.AuditMetadataGenerator.throwUnsupportedTypeException(AuditMetadataGenerator.java:381)
at
org.hibernate.envers.configuration.metadata.AuditMetadataGenerator.addValue(AuditMetadataGenerator.java:147)
at
org.hibernate.envers.configuration.metadata.AuditMetadataGenerator.addProperties(AuditMetadataGenerator.java:161)
at
org.hibernate.envers.configuration.metadata.AuditMetadataGenerator.generateFirstPass(AuditMetadataGenerator.java:324)
at
org.hibernate.envers.configuration.EntitiesConfigurator.configure(EntitiesConfigurator.java:87)
at
org.hibernate.envers.configuration.AuditConfiguration.<init>(AuditConfiguration.java:87)
at
org.hibernate.envers.configuration.AuditConfiguration.getFor(AuditConfiguration.java:99)
at org.hibernate.envers.event.AuditEventListener.initialize(AuditEventListener.java:249)
at org.hibernate.event.EventListeners$1.processListener(EventListeners.java:198)
at org.hibernate.event.EventListeners.processListeners(EventListeners.java:181)
at org.hibernate.event.EventListeners.initializeListeners(EventListeners.java:194)
TO REPRODUCE
~~~~~~~~~~~~~
Please find a zipped folder attached. The zipped file has 4 files:
- GreedyLoading.java (actual testng test case)
- BidirectionalRefEdPK.java (Entity 1)
- BidirectionalRefIngPK.java (Entity 2)
- greedyloading.hbm.xml
Please place the three java files in its package
(org.hibernate.envers.test.integration.onetoone.bidirectional), couldn't find the
right package so created test case accordingly. Put the greedyloading.hbm.xml in
src/test/resources.
Now when testng runs GreedyLoading.java you should see the exception pasted above.
--
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