24.2.19. @DynamicInsert

The @DynamicInsert annotation is used to specify that the INSERT SQL statement should be generated whenever an entity is to be persisted.

</div>

By default, Hibernate uses a cached INSERT statement that sets all table columns. When the entity is annotated with the @DynamicInsert annotation, the PreparedStatement is going to include only the non-null columns.

</div>

See the @CreationTimestamp mapping section for more info on how @DynamicInsert works.

</div> </div>

results matching ""

    No results matching ""