mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1605 - RuntimeException: Nothing in batch? ... when lazy loading on partially populated L2 bean cache
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user