I am having a lot of problems with Hibernate tools in Eclipse Galileo on Mac. I was wondering if anyone else is experiencing problems as well.
My problems are (Note: These issues were not present when using Eclipse 3.4 on Mac.):
- for a composite-id, using a static inner class, the Hibernate Configuration -> Session Factory says the class is not found
https://forum.hibernate.org/viewtopic.php?f=6&t=999852- custom UserTypes are not found for properties via the Hibernate Configuration -> Session Factory
Code:
org.hibernate.MappingException: Could not determine type for: com.project.hib.types.AlertTypeEnum, for columns: [org.hibernate.mapping.Column(alert_type)]
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:266)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253)
at org.hibernate.mapping.Property.isValid(Property.java:185)
at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:440)
at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
at org.hibernate.cfg.Configuration.validate(Configuration.java:1102)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1287)
at org.hibernate.console.ConsoleConfiguration$3.execute(ConsoleConfiguration.java:505)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:94)
at org.hibernate.console.ConsoleConfiguration.buildSessionFactory(ConsoleConfiguration.java:500)
at org.hibernate.eclipse.console.workbench.LazySessionFactoryAdapter.getChildren(LazySessionFactoryAdapter.java:43)
at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:100)
at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:106)
at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
I am using JDK 1.6 for compilation/execution but the Eclipse IDE is executing with JDK 1.5.
Hibernate Core is 3.3.2GA
Any ideas?
Thanks
- Doug