Refactor move tests from ebean-core to ebean-test

This commit is contained in:
rbygrave committed 2021-09-08 22:49:23 +12:00
1 parent 0b00a14fd3
commit eab56d323b
1650 files changed
+185 -147

No files matched your search

@@ -0,0 +1,53 @@
package org.tests.inheritance;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.validation.constraints.NotNull;
import static javax.persistence.CascadeType.ALL;
import static javax.persistence.FetchType.LAZY;
/**
* Model class to reference an organization tree node.
*
* @author Christian Hartl, FOCONIS AG
*/
@Entity
public class OrganizationTreeNode {
@Id
private Long id;
private String name;
@OneToOne(cascade = ALL, fetch = LAZY, mappedBy = "parentTreeNode", orphanRemoval = true)
@NotNull
private OrganizationNode organizationNode;
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 OrganizationNode getOrganizationNode() {
return organizationNode;
}
public void setOrganizationNode(OrganizationNode organizationNode) {
this.organizationNode = organizationNode;
}
}