mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
36 lines
678 B
Java
36 lines
678 B
Java
package org.tests.model.softdelete;
|
|
|
|
import javax.persistence.CascadeType;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.ManyToMany;
|
|
import java.util.List;
|
|
|
|
@Entity
|
|
public class ESoftDelRole extends BaseSoftDelete {
|
|
|
|
String roleName;
|
|
|
|
@ManyToMany(cascade = CascadeType.ALL)
|
|
List<ESoftDelUser> users;
|
|
|
|
public ESoftDelRole(String roleName) {
|
|
this.roleName = roleName;
|
|
}
|
|
|
|
public String getRoleName() {
|
|
return roleName;
|
|
}
|
|
|
|
public void setRoleName(String roleName) {
|
|
this.roleName = roleName;
|
|
}
|
|
|
|
public List<ESoftDelUser> getUsers() {
|
|
return users;
|
|
}
|
|
|
|
public void setUsers(List<ESoftDelUser> users) {
|
|
this.users = users;
|
|
}
|
|
}
|