-->
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.  [ 2 posts ] 
Author Message
 Post subject: [Beginner][Table creation] Table configuration
PostPosted: Fri May 05, 2006 8:07 am 
Newbie

Joined: Thu May 04, 2006 8:00 am
Posts: 2
Hello there,

I'm new on Hibernate and am currently investigating the feasibility of moving the persistence layer of our platform from a in-house solution and a Hibernate one. This library is used by many Java multi-threaded modules on our platform and it's bootstrapped upon each module start-up.

We used to have EJBs but for performance reasons we've decided to move back to standard Client (Java) Server (Oracle) architecture (back in 2002 Hibernate was not so popular back then) for persistence.

This in-house framework is rather heavy and expensive to maintain and to evolve : thus our investigation today.

I have installed the hibernate 3.1 and its example and its up and running fine on our Oracle back end.

Questions :
Q1 : when we define an object mapping on an Oracle table, is this table automatically rebuilt/created at Configuration.buildSessionFactory() time ?
(I'm sure no hence the other question .... )

Q2 : How can we configure Hibernate so that the table is not created at this time ? Is there any way to have the script generated before hand so that our DBA can run them once for all.

I could not find any documentation describing this table process/creation.

Many thanks in advance for your help !


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 05, 2006 9:01 am 
Regular
Regular

Joined: Wed Aug 25, 2004 6:23 am
Posts: 91
Quote:
Q1 : when we define an object mapping on an Oracle table, is this table automatically rebuilt/created at Configuration.buildSessionFactory() time ?
(I'm sure no hence the other question .... )


No - Hibernate does not generate the tables automatically.

Quote:
Q2 : How can we configure Hibernate so that the table is not created at this time ? Is there any way to have the script generated before hand so that our DBA can run them once for all.


See here: http://www.hibernate.org/hib_docs/v3/re ... etguide-s1


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