-
1. Re: Simple Maven Seam + Hibernate Archetype
svadu Aug 6, 2008 6:57 PM (in response to rhills)That blog is pretty old and there are no updates... You really might want to try those other alternatives... What exactly do you mean by 'adding persistence'?
-
2. Re: Simple Maven Seam + Hibernate Archetype
rhills Aug 6, 2008 7:34 PM (in response to rhills)Hi Siarhei, thanks for the reply.
By
adding persistence
I mean I'd like to be able to use a single maven command to build an in-memory db (eg HSQLDB) using any entities in my project, load it with sample data then fire up Jetty to run my Seam app.When I run the app I built with Petr's Archetype (mvn jetty:run) it seems to be actually building the DB, though not loading it up (AFAICT from the logs) but the app can't access it. Not sure if that's because the persistence configuration in the app is slightly wrong somewhere or if it's totally cactus.
-
3. Re: Simple Maven Seam + Hibernate Archetype
svadu Aug 7, 2008 10:29 AM (in response to rhills)Most likely this is a persistence configuration issue. Make sure your persistence.xml (probably should be in src/main/resources/META-INF) contains hibernate.hbm2ddl.auto which has value 'create-drop' and you have import.sql with the insert statements (most likely should be in src/main/resources), those two conditions are mandatory for the database being built-up and filled with data.
If you're talking about data fixtures for tests then refer to Seam reference.