@bropen.toolkit.annotation.DomainEquals(compareMap = true, includes = "employeeIdentityId, positionId") class PositionMember extends Object
岗位和员工身份的关联表
| Type | Name and description |
|---|---|
static Object |
constraints |
Long |
employeeIdentityId |
static Object |
mapping |
Long |
positionId |
| Type | Name and description |
|---|---|
static PositionMember |
create(Long positionId, Long employeeIdentityId, boolean flush = false, boolean insert = false)关联岗位和身份 |
static PositionMember |
get(long positionId, long employeeIdentityId) |
int |
hashCode() |
static void |
remove(Long positionId, Long employeeIdentityId) |
static void |
removeAll(Employee employee) |
static void |
removeAll(Organization organization) |
static void |
removeAll(EmployeeIdentity employeeIdentity) |
static void |
removeAll(Position position) |
| 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。