-->
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: Configuring “hibernate.hbm2ddl.auto” at entity level
PostPosted: Mon Sep 17, 2012 5:26 am 
Newbie

Joined: Thu Apr 05, 2007 5:30 am
Posts: 5
Hello,

I currently use the hibernate.hbm2ddl.auto property with a value of create.

While this setting is very convenient for some entities, I also have an entity that is not going to change and that contains some data that I would like to keep across restarts of the app server (i.e. Tomcat).

I am seeking for a way to tell hibernate/JPA not to touch this entity/table whatever the value of the hibernate.hbm2ddl.auto property.

Is it possible to configure the value of this property at the level of an entity and therefore override the overall behavior for a specific entity?

Thanks in advance for your help,

J.


Top
 Profile  
 
 Post subject: Re: Configuring “hibernate.hbm2ddl.auto” at entity level
PostPosted: Fri Oct 05, 2012 5:01 am 
Newbie

Joined: Thu Apr 05, 2007 5:30 am
Posts: 5
Up please.


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.