mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-08 16:40:20 +00:00
WIP update/refactoring on caching
This commit is contained in:
1 parent
2dccb818a2
commit
4c4e084e43
25 files changed
+728
-460
No files matched your search
+15
-5
@@ -1,14 +1,14 @@
|
||||
package com.avaje.tests.model.basic;
|
||||
|
||||
import com.avaje.ebean.annotation.CacheStrategy;
|
||||
import com.avaje.ebean.annotation.CacheTuning;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.ManyToMany;
|
||||
import javax.persistence.Table;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.avaje.ebean.annotation.CacheStrategy;
|
||||
|
||||
/**
|
||||
* Cached bean for testing caching implementation.
|
||||
@@ -16,11 +16,13 @@ import java.util.List;
|
||||
@CacheStrategy
|
||||
@Entity
|
||||
@Table(name = "o_cached_bean")
|
||||
public class CachedBean {
|
||||
public class OCachedBean {
|
||||
|
||||
@Id
|
||||
Long id;
|
||||
|
||||
String name;
|
||||
|
||||
@ManyToMany
|
||||
List<Country> countries = new ArrayList<Country>();
|
||||
|
||||
@@ -32,6 +34,14 @@ public class CachedBean {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public List<Country> getCountries() {
|
||||
return countries;
|
||||
}
|
||||
Reference in new issue
Block a user