-
1. Re: Hibernate mappings not picked up by Seam-gen
asookazian Aug 28, 2009 12:33 AM (in response to coenos)seam-gen uses hbm2java to revengr your entities. so this should be posted on Hibernate forum or possibly JBoss Tools Users forum if you're not using cmd line.
-
2. Re: Hibernate mappings not picked up by Seam-gen
coenos Aug 28, 2009 10:26 AM (in response to coenos)Ok I found a solution.
The problem is that
Eclipse Jboss Tools - new - generate Seam entities
generates the entities, the Home/List and JSF crud pages. That's a cool feature and maybe I expected too much from it, no offence.
The problem is that this feature does not pick up the reveng.xml file. It generates nice default Entity Beans and the rest.The solution is: goto
Eclipe - Run - Hibernate Code Generation - Hibernate Code Generation Configurations
and there you can define the reveng.xml file/location.
Then you need to run the Entity generation AGAIN, and now it's ok.I assumed that this would be handled nicely by the
generate Seam entities
target if I'd put the reveng.xml in the src/main/resources folder. But it didn't. When usinggenerate entities
from a JPA enabled Eclipse project, that works fine, so that was the mixup.Maybe this feature can be added by the Jboss Tools development team later on :) Would save a lot of time !
Cheers,
Coenos