[
http://opensource.atlassian.com/projects/hibernate/browse/ANN-332?page=co...
]
Emmanuel Bernard commented on ANN-332:
--------------------------------------
User questions should be posted to
http://forum.hibernate.org
Using an @OneToMany/ManyToMany to hbm mapped class causes error.
----------------------------------------------------------------
Key: ANN-332
URL:
http://opensource.atlassian.com/projects/hibernate/browse/ANN-332
Project: Hibernate Annotations
Type: Bug
Components: binder
Versions: 3.1beta8
Environment: hibernate 3.1
hibernate-annotations 3.1-beta8
Reporter: Chris Rudd
Attachments: mappings.tar.gz
Using an OneToMany/ManyToMany relationship to hbm mapped class from an annotated class
causes error. If both classes are mapped the same way (annotated or hbm) this works fine.
Also using a ManyToOne or OneToOne relationship works correctly.
Stack Trace :
org.hibernate.MappingException: Could not determine type for: mappings.HbmMapped, for
columns: [org.hibernate.mapping.Column(elt)]
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:266)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253)
at org.hibernate.mapping.Collection.validate(Collection.java:262)
at org.hibernate.cfg.Configuration.validate(Configuration.java:988)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1169)
at mappings.MappingTest.testOneToMany(MappingTest.java:113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:536)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:395)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:672)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:92)
at org.testng.TestRunner.privateRun(TestRunner.java:624)
at org.testng.TestRunner.run(TestRunner.java:515)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
at org.testng.SuiteRunner.run(SuiteRunner.java:147)
at org.testng.eclipse.runner.RemoteTestNG.run(RemoteTestNG.java:98)
at org.testng.eclipse.runner.RemoteTestNG.main(RemoteTestNG.java:138)
--
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