I use AndroMDA to just generate the Java source. My application build process takes over:
- compiles the source - runs hibernatedoclet to generate the mapping files + JBoss SAR descriptor The SAR descriptor is the equivalent of the hibernate.properties file. This is all documented at http://www.hibernate.org/66.html, where I wrote about the Hibernate 2.X process for JBoss. In general, hibernate.properties lives outside the WAR. Check out the Hibernate.org site to see the discussion about Tomcat integration, particularly http://www.hibernate.org/114.html. The main issue for upgrading AndroMDA to Hibernate 2.X is in the hibernatedoclet task and parameters, and Hibernate class names - "cirrus.hibernate." is now "net.sf.hibernate.". See 66.html for the details - they are the same regardless of doing things for JBoss or not. Cheers, Sherman -----Original Message----- From: Luciano Macedo Rodrigues (Opensoft) [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 3:32 PM To: 'Sherman Wood' Subject: RES: [Andromda-user] Hibernate question > > You need to learn some things about Hibernate. That's totally true :) > > The hibernate-schema target in the Hibernate-template is only > there for generating the DB creation script. It does not need > to connect to a DB to do that, so no properties being available is OK. > Yeah, I noticed that, but... > The properties file is only useful if you are actually > running Hibernate classes, which is not happening during the > AndroMDA build time. .. how do I deploy Hibernate classes generated by AndroMDA? Can AndroMDA package my WAR file with hibernate.properties so I just deploy it and forget it? > > Additionally, the Hibernate-template uses Hibernate 1.2, > which is quite old now. Hmmm.. And when we'll get support for Hibernate 2.0? Luciano ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user
