mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
* FIX: mysql index sizes * FIX: osolete whitespace in sqlserver tests * Updated mssql-jdbc, this fixes problems in the batch insert (https://github.com/Microsoft/mssql-jdbc/pull/912) * fix tablename (reserved word in mariadb) * ignored failing tests for sqlserver
52 lines
874 B
Java
52 lines
874 B
Java
package org.tests.cache.personinfo;
|
|
|
|
import io.ebean.annotation.Cache;
|
|
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.validation.constraints.Size;
|
|
|
|
@Entity
|
|
@Cache
|
|
public class PersonCacheEmail {
|
|
|
|
@Id
|
|
@Size(max=128)
|
|
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;
|
|
}
|
|
}
|