Top Description Methods
org.hibernate.annotations

public @Interface DynamicUpdate

extends Annotation
Annotations
@Target:TYPE
@Retention:RUNTIME
Imports
java.lang.annotation.Retention, .Target

Specifies that SQL update statements for the annotated entity are generated dynamically, and only include columns which are actually being updated.

This might result in improved performance if it is common to change only some of the attributes of the entity. However, there is a cost associated with generating the SQL at runtime.

When detached entities are reattached using org.hibernate.Session#update(Object), the entity must also be annotated SelectBeforeUpdate for this annotation to have any effect.

Author
Steve Ebersole
See Also
SelectBeforeUpdate

Method Summary

Modifier and TypeMethod and Description
public boolean
value()

Deprecated since 6.0. When false, this annotation has no effect.
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public boolean value()

Deprecated

since 6.0.

When false, this annotation has no effect.

Annotations
@Deprecated
since:6.0