-->
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: How to avoid creating mapping table??
PostPosted: Wed Nov 07, 2007 1:43 pm 
Newbie

Joined: Sun Nov 04, 2007 8:11 pm
Posts: 4
In the hibernate configuration, there is this property:

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

in the actual mapping configuration, we have a class definition:

<class name="user.ThreeStrings">
<id name="A"/>
<property name="B"/>
<property name="C"/>
</class>

where ThreeStrings is just a custom Java class.

What I notice is in the database, a temporary table "ThreeStrings" always gets created (if not exist) when the Hiberate sessionFactory instanticate. While all its purpose is to help Hibernate validate this class.

My question is, is there anyway to force Hiberanate not to validate or create this table in database?

If all the purpose if the temporary table is to validate DDL, is there a smarter way than to create a real table in database?

Thanks


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.