mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
48 lines
887 B
Java
48 lines
887 B
Java
package org.tests.query.cache;
|
|
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.FetchType;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
@Entity
|
|
public class AclContainerRelation {
|
|
@Id
|
|
@GeneratedValue
|
|
protected Long id;
|
|
|
|
@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
|
|
@NotNull
|
|
private Contract container;
|
|
|
|
@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
|
|
@NotNull
|
|
private Acl aclEntry;
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(final Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public Contract getContainer() {
|
|
return container;
|
|
}
|
|
|
|
public void setContainer(final Contract container) {
|
|
this.container = container;
|
|
}
|
|
|
|
public Acl getAclEntry() {
|
|
return aclEntry;
|
|
}
|
|
|
|
public void setAclEntry(final Acl aclEntry) {
|
|
this.aclEntry = aclEntry;
|
|
}
|
|
|
|
} |