-->
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: create an object form an Oracle stored proc.
PostPosted: Thu Nov 25, 2010 11:36 am 
Newbie

Joined: Fri Nov 19, 2010 7:04 am
Posts: 1
Hi

I am a hibernate newbie. I am creating a "Customer" object from an oracle stored procedure and then want to use that object to save on a SQL server database.

The problem I am having is when I call the Stored procedure Hibernate keeps wanting to create a customer table on Oracle even though i don't want it to be created there. I am getting the information for the customer object from a stored procedure I don't need a table.

I see org.hibernate.tool.hbm2ddl.SchemaUpdate execute in the logging. How do I stop Hibernate creating this table ?


Top
 Profile  
 
 Post subject: Re: create an object form an Oracle stored proc.
PostPosted: Tue Jan 04, 2011 9:36 am 
Regular
Regular

Joined: Thu Oct 19, 2006 12:07 pm
Posts: 75
See http://docs.jboss.org/hibernate/core/3. ... ation.html

Do not set the hibernate.hbm2ddl.auto property.
Or set it to none (not documented, but works).

I have a line like this in my hibernate.cfg.xml file:
Code:
<property name="hbm2ddl.auto">create</property>


If I remove it, no tables and sequences are generated.


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.