mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
50 lines
815 B
Java
50 lines
815 B
Java
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;
|
|
}
|
|
}
|