mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
* Add test suite from rpraml * FIX: Splitcolumns must return an empty array if string was empty * Just the reference scripts
46 lines
719 B
Java
46 lines
719 B
Java
package misc.migration.v1_1;
|
|
|
|
import javax.persistence.CascadeType;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.OneToOne;
|
|
import javax.persistence.Table;
|
|
|
|
@Entity
|
|
@Table(name = "migtest_oto_master")
|
|
public class OtoMaster {
|
|
|
|
@Id
|
|
Long id;
|
|
|
|
String name;
|
|
|
|
@OneToOne(cascade = CascadeType.ALL, mappedBy = "master")
|
|
OtoChild child;
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public OtoChild getChild() {
|
|
return child;
|
|
}
|
|
|
|
public void setChild(OtoChild child) {
|
|
this.child = child;
|
|
}
|
|
|
|
}
|