com.avaje.ebean.annotation
Annotation Type NamedUpdate


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface NamedUpdate

An Update statement for a particular entity bean type.

The update can either be a sql insert,update or delete statement with tables and columns etc or the equivalent statement but with table names and columns expressed as bean types and bean properties.


Required Element Summary
 String name
          The name of the update.
 String update
          The insert, update or delete statement.
 
Optional Element Summary
 boolean notifyCache
          Set this to false if you do not want the cache to be notified.
 

Element Detail

name

public abstract String name
The name of the update.


update

public abstract String update
The insert, update or delete statement.

notifyCache

public abstract boolean notifyCache
Set this to false if you do not want the cache to be notified. If true the cache will invalidate appropriate objects from the cache (after a successful transaction commit).

Default:
true


Copyright © 2010. All Rights Reserved.