-->
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: How to Turn on/off dynamic insert/update at runtime
PostPosted: Mon Jun 26, 2006 2:59 am 
Regular
Regular

Joined: Wed Sep 28, 2005 6:45 pm
Posts: 56
I want to be able to switch between using/not using dynamic inserts at runtime, and I wonder how I can do it?

I noticed a class org.hibernate.mapping.PersistentClass that has a method setDynamicInsert(boolean dynamicInsert) which is just about what I want, but I can't seem to find any way to use it, or a similar method...

The reason for wanting to do this at runtime is that in some instances I want to be able to set columns to null and in some cases I want to only update certain columns...

Thanks in advance for any help :)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 02, 2006 3:22 pm 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
I think you can set your own persister class - maybe there can you expose PersistentClass?


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.