mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#919 - io.ebean package initial
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package org.tests.model.basic;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.ManyToOne;
|
||||
|
||||
@Entity
|
||||
public class EOptOneB extends BasicDomain {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
String nameForB;
|
||||
|
||||
@ManyToOne(optional = false)
|
||||
EOptOneC c;
|
||||
|
||||
public String getNameForB() {
|
||||
return nameForB;
|
||||
}
|
||||
|
||||
public void setNameForB(String nameForA) {
|
||||
this.nameForB = nameForA;
|
||||
}
|
||||
|
||||
public EOptOneC getC() {
|
||||
return c;
|
||||
}
|
||||
|
||||
public void setC(EOptOneC c) {
|
||||
this.c = c;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user