-->
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: Entity(dinamicInsert, dinamicUpdate)
PostPosted: Thu Aug 06, 2009 11:17 am 
Regular
Regular

Joined: Tue Feb 17, 2009 5:13 am
Posts: 59
Hi all.

I have seen in chapter 4.3.1 (Dynamic SQL generation) of the "bible" (Java Persistence with Hibernate) the attributes dinamicInsert and dinamicUpdate of @org.hibernate.annotations.Entity.

"The dynamic-insert attribute tells Hibernate whether to include null property values in an SQL INSERT, and the dynamic-update attribute tells Hibernate whether to include unmodified properties in the SQL UPDATE"

My question is: anybody know a disadvantage of setting true these attributes in any mapped entities?
I mean, is there any situation in which any of these attributes should be false?

Code example:
Code:
@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true)
//see 4.3.1 Dynamic SQL generation (page 172)
@Table(name = "table_name", schema = "schema_name")
public class Pojo implements Serializable {
   // mapped fields and accessors
}

_________________
Born to lose... live to win!


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.