mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
43 lines
595 B
Java
43 lines
595 B
Java
package com.avaje.tests.model.inheritmany;
|
|
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.ManyToOne;
|
|
|
|
@Entity
|
|
public class IMRelated {
|
|
|
|
@Id
|
|
Long id;
|
|
|
|
String name;
|
|
|
|
@ManyToOne(optional=false)
|
|
IMRoot owner;
|
|
|
|
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 IMRoot getOwner() {
|
|
return owner;
|
|
}
|
|
|
|
public void setOwner(IMRoot owner) {
|
|
this.owner = owner;
|
|
}
|
|
|
|
}
|