max wrote:
not sure why you generate pojo's on the first run if you just wanted the hbm.xml's ?
Anyhow, for the second run just dont enable jdbc reverse engineering and it will pick up all the mappings instead.
I generated the pojos on the first because I was exploring the capabilities of the HTools plugin with Eclipse. Just trying to get a feel of what the tool can do. After I was comfortable with the tool I wanted to really configure the way my pojos were created.
To you point on not enabling the jdbc reverse engineering, I did try that. Here is the senario:
I have successfully created a Hibernate configuration file and Hibernate console through the wizard. I have added my hbm.xml files to the configuration so that the Hibernate configuration shows all my new hbm configurations. None of the pojos defined in the configuration hbm.xml file is actually created.
However, I get the following error when I try what you suggest:
org.hibernate.console.HibernateConsoleRuntimeException: Could not load AnnotationConfiguration
Could not load AnnotationConfiguration
org.hibernate.MappingException: Unable to load class declared as <mapping class="com.aviall.edi.modules.order.process.core.persistence.generated.valueobjects.TransactionCommands"/> in the configuration:
Unable to load class declared as <mapping class="com.aviall.edi.modules.order.process.core.persistence.generated.valueobjects.TransactionCommands"/> in the configuration:
org.hibernate.MappingException: Unable to load class declared as <mapping class="com.aviall.edi.modules.order.process.core.persistence.generated.valueobjects.TransactionCommands"/> in the configuration:
Unable to load class declared as <mapping class="com.aviall.edi.modules.order.process.core.persistence.generated.valueobjects.TransactionCommands"/> in the configuration:
java.lang.ClassNotFoundException: com.aviall.edi.modules.order.process.core.persistence.generated.valueobjects.TransactionCommands
com.aviall.edi.modules.order.process.core.persistence.generated.valueobjects.TransactionCommands
Why do I get this error?
Thanks!