我怎么能对关系提出反对,并坚持这一关系?
如果是这样的话,
registrationInstance.addToActionType(id:id)
我仅举一个例外。
Unique index or primary key violation: "PRIMARY_KEY_E7 ON PUBLIC.ACTION_TYPE_REGISTRATIONS(ACTION_TYPE_ID, REGISTRATION_ID)"; SQL statement: insert into action_type_registrations (action_type_id, registration_id) values (?, ?) [23001-147]
EDIT:
如果是,
registrationInstance.addToActionType(ActionType.get(id))
我也看到同样的错误,但这种错误依然存在——因此我如何能够消除这一错误?
EDIT:
如果我试图删除一个物体:
registrationInstance.removeFromActionType(ActionType.get(id))
我收到以下错误(有时,不是所有途径)
Eindeutiger Index oder Primarschlüssel verletzt: "PRIMARY_KEY_E7 ON PUBLIC.ACTION_TYPE_REGISTRATIONS(ACTION_TYPE_ID, REGISTRATION_ID)" Unique index or primary key violation: "PRIMARY_KEY_E7 ON PUBLIC.ACTION_TYPE_REGISTRATIONS(ACTION_TYPE_ID, REGISTRATION_ID)"; SQL statement: update action_type_registrations set action_type_id=? where registration_id=? and action_type_idx=? [23001-147]