Eclipse - Version: 3.2.1 Build id: M20060921-0945
Hibernate Tools - Version 3.2.0beta8
Hibernate Version - where can i find it?
glazed-lists - Version 1.7.1.alpha20061218
I am a hibernate newbie.
Managed to run the "Hibernate Code Generation" tool within eclipse,
to generate java-Files.
I just wanted to try the new extension provided by the upcoming glazed-lists-version,
So I used
collection-type="ca.odell.glazedlists.hibernate.EventListType"
for one list in my .hbm.xml-file
and got the following error-message when running the code generation
Quote:
org.hibernate.tool.hbm2x.ExporterException: Error while processing template pojo/Pojo.ftl
freemarker.template.TemplateModelException: Method public java.lang.String org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getJavaTypeName(org.hibernate.mapping.Property,boolean) threw an exception when invoked on org.hibernate.tool.hbm2x.pojo.EntityPOJOClass(tst.glazedhibernatetst.data.ExampleTypeA)
freemarker.template.TemplateModelException: Method public java.lang.String org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getJavaTypeName(org.hibernate.mapping.Property,boolean) threw an exception when invoked on org.hibernate.tool.hbm2x.pojo.EntityPOJOClass(tst.glazedhibernatetst.data.ExampleTypeA)
org.hibernate.tool.hbm2x.ExporterException: Could not resolve type without exception for org.hibernate.mapping.Property(adressen) Value: org.hibernate.mapping.List(tst.glazedhibernatetst.data.ExampleTypeA.adressen)
org.hibernate.MappingException: user colllection type class not found: ca.odell.glazedlists.hibernate.EventListType
java.lang.ClassNotFoundException: ca.odell.glazedlists.hibernate.EventListType
This was easy to solve.
I specified the glazed-list-jar-file in the classpath-table within the console configuration
and I got the followin error-message:
Quote:
org.hibernate.tool.hbm2x.ExporterException: Error while processing template pojo/Pojo.ftl
freemarker.template.TemplateModelException: Method public java.lang.String org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getJavaTypeName(org.hibernate.mapping.Property,boolean) threw an exception when invoked on org.hibernate.tool.hbm2x.pojo.EntityPOJOClass(tst.glazedhibernatetst.data.ExampleTypeA)
freemarker.template.TemplateModelException: Method public java.lang.String org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getJavaTypeName(org.hibernate.mapping.Property,boolean) threw an exception when invoked on org.hibernate.tool.hbm2x.pojo.EntityPOJOClass(tst.glazedhibernatetst.data.ExampleTypeA)
java.lang.reflect.InvocationTargetException: <no message>
java.lang.AbstractMethodError: ca.odell.glazedlists.hibernate.EventListType.instantiate(I)Ljava/lang/Object;
Should I post the used version of EventListTypeTest.java here?
Never used collection-type before. Is this problem related to the unstable state of galzed-lists or is ist my fault?
Has anybody else experienced the same problem?
Thank you :D