Files
ebean/src/test/java/org/tests/cache/personinfo/PersonCacheEmail.java
T
Roland PramlandRob Bygrave 6a7e6caa66 Test fixes (#1628)
* 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
2019-02-04 09:20:09 +13:00

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;
}
}