Package io.ebean.annotation
Annotation Type View
-
@Retention(RUNTIME) @Target(TYPE) public @interface View
Annotate an entity bean with @View to indicates the bean is based on a view.As such typically the view is defined in
extra-ddl.xmlusingcreate or replace view ....When using extra-ddl.xml Ebean will run the resulting DDL script after the
create-allDDL (which is typically used during development) and for DB Migration will copy the scripts asrepeatable migration scriptsthat will be run by FlywayDb (or Ebean's own migration runner) when their MD5 hash changes.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String[]dependentTablesTables this view is dependent on.
-
-
-
-
dependentTables
String[] dependentTables
Tables this view is dependent on.This is used with l2 caching to invalidate the query cache. Changes to these tables invalidate the query cache for the entity based on this view.
- Default:
- {}
-
-