-->
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: @DynamicInsert @DynamicUpdate does not work?
PostPosted: Wed Jan 18, 2012 8:54 am 
Newbie

Joined: Wed Jan 18, 2012 8:39 am
Posts: 2
Hi,

I am using Hibernate 4.
When I use
Code:
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true, selectBeforeUpdate = true)


it works.
But, I found that they have deprecated, so I follow the instructions to use the @DynamicInsert and @DynamicUpdate, like this:


Code:
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "User")
public class User {
       ..........
}


Not working
How do I use @DynamicInsert and @DynamicUpdate ?


Top
 Profile  
 
 Post subject: Re: @DynamicInsert @DynamicUpdate does not work?
PostPosted: Thu Jan 19, 2012 9:43 pm 
Newbie

Joined: Wed Jan 18, 2012 8:39 am
Posts: 2
push push


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.