mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
46 lines
753 B
Java
46 lines
753 B
Java
package org.tests.model.draftable;
|
|
|
|
import io.ebean.annotation.DraftableElement;
|
|
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.ManyToOne;
|
|
|
|
/**
|
|
* 'Owned' by @Draftable root.
|
|
*/
|
|
@DraftableElement
|
|
@Entity
|
|
public class DocumentMedia extends BaseDomain {
|
|
|
|
@ManyToOne
|
|
Document document;
|
|
|
|
String name;
|
|
|
|
String description;
|
|
|
|
public Document getDocument() {
|
|
return document;
|
|
}
|
|
|
|
public void setDocument(Document document) {
|
|
this.document = document;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
public void setDescription(String description) {
|
|
this.description = description;
|
|
}
|
|
}
|