-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: problems with import.sql and more..
PostPosted: Tue Aug 12, 2008 6:47 am 
Newbie

Joined: Tue Aug 12, 2008 5:09 am
Posts: 1
Hi!
I am confused about import.sql feature as well a few things around it.
i am using version of hibernate that comes with jboss seam 2.0.3.CR1 (version 3.something)
Besides that it is jboss AS 4.2.2 GA, Postgres db.

I have 2 tables for 2 entitys/classes. None of the tables gets updated
with stuff from import.sql if i am using setting
<property name="hibernate.hbm2ddl.auto" value="update"/>
but both gets "updated" with one of those 2 setting.
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
or
<property name="hibernate.hbm2ddl.auto" value="create"/>
in persistence.xml file.
The first table is called competence_group and it actually doesnt get
droped(probably because it has a foreign key) It does get updated though, preserving old values despite hibernate.hbm2ddl.auto=create or create-drop. When i change it to update then no updates to that table.
The second table either gets created and then data from import.sql inserted or nothing with hibernate.hbm2ddl.auto=update.

My question is why ? :)

I dont see any errors in the server.log except sometimes about errors in the import.sql, although i am able to run sql from import.sql manually

Please help!
/Alex


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.