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,24 @@
|
||||
package org.tests.model.onetoone;
|
||||
|
||||
import org.tests.model.basic.BasicDomain;
|
||||
|
||||
import javax.persistence.CascadeType;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.OneToOne;
|
||||
|
||||
@Entity
|
||||
public class ORoadShowMsg extends BasicDomain {
|
||||
|
||||
@OneToOne(cascade = CascadeType.ALL, optional = false)
|
||||
@JoinColumn()//(name = "corp_id", nullable = false, referencedColumnName = "corp_id")
|
||||
public OCompany company;
|
||||
|
||||
public OCompany getCompany() {
|
||||
return company;
|
||||
}
|
||||
|
||||
public void setCompany(OCompany company) {
|
||||
this.company = company;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user