@AmberTableCache

From CauchoWiki

Jump to: navigation, search


The @AmberTableCache annotation lets you specify the read-only and cache timeout attributes for an Amber-managed bean.

[edit] MyBean.java

import javax.persistence.Entity;
import com.caucho.amber.AmberTableCache;

@Entity
@AmberTableCache(readOnly=false, timeout="10s")
public class MyBean {
  ...
}
Personal tools