-
1. Re: How to create tables from classes
maxandersen Mar 10, 2009 5:12 PM (in response to handro1104)Hibernate creates the tables for you if they don't exist already.
see the hibernate.hbm2ddl.auto setting. -
2. Re: How to create tables from classes
handro1104 Mar 11, 2009 7:37 AM (in response to handro1104)Thank you very much max.anderson, but I don't known how to access or modify the hibernate.hbm2ddl.auto setting. I have tried many things related to hibernate in JBoss Developer Studio. Could you please give more details or links where I can find the information?
-
3. Re: How to create tables from classes
handro1104 Mar 11, 2009 10:41 AM (in response to handro1104)Thank you very much. Setting to "create" in persistence.xml works.
-
4. Re: How to create tables from classes
handro1104 Mar 11, 2009 3:10 PM (in response to handro1104)Well, now I have problems. The first time I selected New->Generate Seam entities and in the dialog I set "use existing entities" and a table was created from my class. However, after I added a property to my class and repeated the process, nothing changed in the table. Then i dropped the table and tried again, but no table was created.
Please tell me what I am doing wrong. -
5. Re: How to create tables from classes
maxandersen Mar 11, 2009 3:51 PM (in response to handro1104)use drop-create to get it to drop the tables and recreate them again.
-
6. Re: How to create tables from classes
handro1104 Mar 11, 2009 5:00 PM (in response to handro1104)I used
but still doesn't work.