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.  [ 3 posts ] 
Author Message
 Post subject: Inserting more rows into the same table
PostPosted: Fri May 09, 2008 12:24 am 
Newbie

Joined: Fri May 09, 2008 12:12 am
Posts: 3
Hi all

I am using the hibernate.hbm2ddl.auto create option in the hibernate cfg .xml file. It works fine and I think it creates a new table with the same name as the old one with the new records. If I want to insert new records in the same table can the update option handle that? Or do you have to do this in a different way.

Any help will be really appreciated. ;-)

--Moni[/img]


Top
 Profile  
 
 Post subject: Re: Inserting more rows into the same table
PostPosted: Fri May 09, 2008 5:29 am 
Newbie

Joined: Wed May 07, 2008 10:23 am
Posts: 9
Location: Santharavur,Chirala,AP,India
Hi

<property name="hbm2ddl.auto">update</property>
<property name="hbm2ddl.auto">validate</property>


you can use either of these two..it will work......




Thanks
PurnachandraRao.


moni wrote:
Hi all

I am using the hibernate.hbm2ddl.auto create option in the hibernate cfg .xml file. It works fine and I think it creates a new table with the same name as the old one with the new records. If I want to insert new records in the same table can the update option handle that? Or do you have to do this in a different way.

Any help will be really appreciated. ;-)

--Moni[/img]

_________________
B.PurnachandraRao
Santharavur,Chirala,AP,India


Top
 Profile  
 
 Post subject: Thanks!
PostPosted: Fri May 09, 2008 10:24 am 
Newbie

Joined: Fri May 09, 2008 12:12 am
Posts: 3
Thanks for helping me. I will try that out.

--Moni


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

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.