mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
34 lines
519 B
Java
34 lines
519 B
Java
package com.avaje.tests.model.basic;
|
|
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.ManyToOne;
|
|
|
|
@Entity
|
|
public class EOptOneA extends BasicDomain {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
String nameForA;
|
|
|
|
@ManyToOne(optional = true)
|
|
EOptOneB b;
|
|
|
|
public String getNameForA() {
|
|
return nameForA;
|
|
}
|
|
|
|
public void setNameForA(String nameForA) {
|
|
this.nameForA = nameForA;
|
|
}
|
|
|
|
public EOptOneB getB() {
|
|
return b;
|
|
}
|
|
|
|
public void setB(EOptOneB b) {
|
|
this.b = b;
|
|
}
|
|
|
|
|
|
}
|