-->
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.  [ 6 posts ] 
Author Message
 Post subject: When Table is created By Hiberante.
PostPosted: Sat Jan 07, 2006 9:58 am 
Newbie

Joined: Mon Nov 14, 2005 2:27 am
Posts: 6
Hi,
When is Table created automatically by Hibernate?
What happens when the following property is set?
<property name="hibernate.hbm2ddl.auto">update</property>
What is the default value of the above property?

Thanks,


Top
 Profile  
 
 Post subject: Re: When Table is created By Hiberante.
PostPosted: Mon Jan 09, 2006 7:42 am 
Newbie

Joined: Mon Nov 14, 2005 2:27 am
Posts: 6
schan_k wrote:
Hi,
When is Table created automatically by Hibernate?
What happens when the following property is set?
<property name="hibernate.hbm2ddl.auto">update</property>
What is the default value of the above property? This is an urgent requirement. Hiberante is automatically creating Tables.

Here is the scenario:

I have 2 schemas in the Database schema1 and schema2 , All the tables are created in schema1 and corresponding Synonym is created in Schema2. Hibernate Logs in using Schema2's user id and password.

So now the hibernate is creating tables in schema2 ignoring the schema1's table.All I have done is , I haven't added the hibernate.hbm2ddl.auto property, I left to default value. WHat should i set so that Hibernate doesnt create the Table automatically.


Thanks,


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 09, 2006 8:06 am 
Expert
Expert

Joined: Tue Nov 23, 2004 7:00 pm
Posts: 570
Location: mostly Frankfurt Germany
Have a look in the hibernate reference and search for
hibernate.hbm2ddl.auto
It is explained in detail.
Regards

Sebastian

_________________
Best Regards
Sebastian
---
Training for Hibernate and Java Persistence
Tutorials for Hibernate, Spring, EJB, JSF...
eBook: Hibernate 3 - DeveloperGuide
Paper book: Hibernate 3 - Das Praxisbuch
http://www.laliluna.de


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 09, 2006 8:30 am 
Newbie

Joined: Mon Nov 14, 2005 2:27 am
Posts: 6
I am sorry I could not find a detailed description in the refernce , can u send me the Link..

Thanks in advance..


LaLiLuna wrote:
Have a look in the hibernate reference and search for
hibernate.hbm2ddl.auto
It is explained in detail.
Regards

Sebastian


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 09, 2006 9:45 am 
Expert
Expert

Joined: Tue Nov 23, 2004 7:00 pm
Posts: 570
Location: mostly Frankfurt Germany
Open PDF of Hibernate reference 3.x
Open Search box
type
hibernate.hbm2ddl.auto

klick ok

;-)

_________________
Best Regards
Sebastian
---
Training for Hibernate and Java Persistence
Tutorials for Hibernate, Spring, EJB, JSF...
eBook: Hibernate 3 - DeveloperGuide
Paper book: Hibernate 3 - Das Praxisbuch
http://www.laliluna.de


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 11, 2006 4:14 am 
Regular
Regular

Joined: Tue Dec 14, 2004 5:21 am
Posts: 104
Location: india
hibernate doesnt do a schema export unless specified

_________________
sHeRiN
thanks for your ratings ...... :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.