Whether you may try CREATE at first, after import data.sql, then change to
UPDATE.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926820#3926820
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926820
-
After use UPDATE, it will not run the import.sql
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926781#3926781
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926781
---
Try setting value="update" for hibernate.hbm2ddl.auto
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926734#3926734
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926734
---
Yes, Hibernate will automatic execute the /Import.sql.
The problem is that JBoss will not create the schema for the EJB3 if I did not
add a properties
|
|
If I add the above property to the persistence.xml, it will re-create all the
tables each time I startup the JBoss.
How to make the
Furthermore, is it possible to import some data in a SQL when deploy the EJB3 ?
For example, I packed a data.sql with the EJB3 .jar, can the deployer automatic
load the data.sql ?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926528#3926528
Reply to the
tools.hibernate.org for ddl for ejb3 (see hbm2ddl in docs)
put a /import.sql in there and hibernate will pick it up and execute.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926529#3926529
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=