Hi Fabio, > ah, my question wasn't really that. Maybe I haven't stated it clearly > enough. I'm using linux and I found that the Ant script (somehow) manages > do > creates the webmaildb* files. But before I ran the ant dbstart where is > the > file with the DB structure located? I mean, using MySQL, I would ran a > sql > script with my table info in it and after that the table structure would > be > availabe through MySQL's demon.
Ohhhhhh.... if I understand your question correctly, you are wondering where are the CREATE TABLE statements and so on. Is that correct? If so, it is actually Hibernate that does all the work, not HSQLDB. On startup, Hibernate creates your database schema for you from reading the Java classes that are annotated with @Entity. This is configured in the persistence.xml file: <property name="hibernate.archive.autodetection" value="class"/> <property name="hibernate.hbm2ddl.auto" value="create"/> If you are more comfortable with MySQL, you can change the configuration in that same persistence.xml file. You'll need to specify the JDBC driver class, MySQL dialect, connection url, username and password. Don't forget to add the MySQL JDBC jar. If that is not what you were asking about, my apologies for misunderstanding again! Let me know. > Another question, I'm having a very hard time trying to set tomcat up so > it > could hot deploy my Stripes app. I've changed the context file, created a > shell script moving the war file to the webapp directory. NOthing works. > Is > there some easy way to achieve it? I saw there is a hot deploy plugin, > but I > dunno if won't lose more time trying to get it to work.. what is your > thoughts about it? I think the easiest way is to set up an XML file in the $CATALINA_HOME /conf/Catalina/localhost directory and make it point to your project. There is a auto redeploy option (can't remember if it is on by default), with which the web app will be reloaded when you recompile. Hope that helps. Cheers, Freddy ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
