#1605 - RuntimeException: Nothing in batch? ... when lazy loading on partially populated L2 bean cache

This commit is contained in:
rob bygrave
2019-01-08 21:44:18 +13:00
parent 5bcad17ae1
commit 7aef4ff1bd
6 changed files with 240 additions and 18 deletions
@@ -0,0 +1,49 @@
package org.tests.cache.personinfo;
import io.ebean.annotation.Cache;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
@Entity
@Cache
public class PersonCacheEmail {
@Id
private String id;
@ManyToOne
private PersonCacheInfo personInfo;
private String email;
public PersonCacheEmail(String id, String email) {
this.id = id;
this.email = email;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public PersonCacheInfo getPersonInfo() {
return personInfo;
}
public void setPersonInfo(PersonCacheInfo personInfo) {
this.personInfo = personInfo;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
}