Package org.hibernate.annotations

Annotation Interface DynamicInsert


@Target(TYPE)@Retention(RUNTIME)public @interfaceDynamicInsert
Specifies that SQLinsert statements for the annotated entity are generated dynamically, and only include the columns to which a non-null value must be assigned.

This might result in improved performance if an entity is likely to have many null attributes when it is first made persistent. However, there is a cost associated with generating the SQL at runtime.