@bropen.toolkit.annotation.DomainEquals(compareMap = true, includes = "employeeId, groupId") class GroupMember extends Object
群组和员工的关联表
| Type | Name and description |
|---|---|
static Object |
constraints |
Long |
employeeId |
Long |
groupId |
static Object |
mapping |
| Type | Name and description |
|---|---|
static GroupMember |
create(Long groupId, Long employeeId, boolean flush = false, boolean insert = false)关联群组和员工 |
static GroupMember |
get(long groupId, long employeeId) |
int |
hashCode() |
static void |
remove(Long groupId, Long employeeId) |
static void |
removeAll(Employee employee) |
static void |
removeAll(Group group) |
| Methods inherited from class | Name |
|---|---|
class Object |
Object#wait(long, int), Object#wait(long), Object#wait(), Object#equals(Object), Object#toString(), Object#hashCode(), Object#getClass(), Object#notify(), Object#notifyAll() |
关联群组和员工
insert 为 true时,强制插入,能提升点性能;如果出错,可尝试设置为 false。