@Retention(value=RUNTIME) @Target(value=TYPE) public @interface View
As such typically the view is defined in extra-ddl.xml using
create or replace view ....
When using extra-ddl.xml Ebean will run the resulting DDL script after the
create-all DDL (which is typically used during development) and for
DB Migration will copy the scripts as repeatable migration scripts that
will be run by FlywayDb (or Ebean's own migration runner) when their MD5 hash changes.
| Modifier and Type | Required Element and Description |
|---|---|
String |
name
The name of the view this entity bean is based on.
|
| Modifier and Type | Optional Element and Description |
|---|---|
String[] |
dependentTables
Tables this view is dependent on.
|
public abstract String[] dependentTables
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.
Copyright © 2016. All rights reserved.