Add Wobu TestCacheDelete test case for cached beans

This commit is contained in:
wbuchner
2014-04-24 02:42:28 +12:00
committed by Rob Bygrave
parent 89f7d2bace
commit 696dabc658
3 changed files with 94 additions and 1 deletions
@@ -0,0 +1,39 @@
package com.avaje.tests.model.basic;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import com.avaje.ebean.annotation.CacheStrategy;
/**
* Cached bean for testing caching implementation, especially relations.
*/
@CacheStrategy
@Entity
@Table(name = "o_cached_bean_child")
public class OCachedBeanChild {
@Id
Long id;
@ManyToOne
OCachedBean cachedBean;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public OCachedBean getCachedBean() {
return cachedBean;
}
public void setCachedBean(OCachedBean cachedBean) {
this.cachedBean = cachedBean;
}
}