Just change the datasource/persistence.xml and the tables will be created in whatever database you are using.
Thank you very much !!!
Not thank you !
It seems than other people in the forum have also problems to access the database.
It is really intransparent, how Seam generates the database.
I succeeded now to create half the db of dvdStore on mysql (break with the import-script) with changed configuration in jboss-beans.xml and persistence.xml.
It would be much better, if you could generate the db with one
simple dump and no autogenerating of tables.
For example, where is the config-file for the generation ?
I'm sorry I like the examples in Seam, but the handling of the database is not simple and a reason for searching alternatives like Spring.
Sorry - I have no idea what you are talking about. Hibernate supports automatic table generation and automatic data import if you want to use it. You don't have to use it. Hibernate supports a number of other mechanisms for creating the database or even reverse engineering a model from the database. You are free to use those mechanisms if you prefer. Nothing is stopping you.
Ok, but where in the DVDStore app the autogeneration of the database starts, where are the files, hibernate (?) reads, to
generate the database ?
This is complex.
Is there another way not to use autogeneration ?
Generate the db manually and just start the app ?
How can I do this ? What files I must change ?
It automatically generates them from the entities. There are no files involved. If you don't want to generate the database, set hibernate.hbm2ddl.auto to none in persistence.xml.
Thank you, now it is clearer for me.
I will try again.