Package org.hibernate.annotations
Annotation Type Synchronize
-
@Target(TYPE) @Retention(RUNTIME) public @interface Synchronize
Specifies the tables that hold state mapped by the annotated derived entity, ensuring that auto-flush happens correctly and that queries against the derived entity do not return stale data.This annotation may be used in combination with
Subselect
, or when an entity maps a database view.
-
-
Element Detail
-
value
String[] value
Names of tables that hold state mapped by the derived entity. Updates to these tables must be flushed to the database before the derived entity is queried.
-
-