을에서 사용자를 삭제할 수 없습니다 :내가이 GORM의 인터뷰를 삭제하기 위해 노력하고있어이 오류 받고 있어요 GORM
Referential integrity constraint violation: "FK_APCC8LXK2XNUG8377FATVBN04:
PUBLIC.USER_ROLE FOREIGN KEY(USER_ID) REFERENCES PUBLIC.USERS(ID) (40)";
SQL statement: delete from users where id=? and version=? [23503-176]
을 그리고 이것은 내 도메인입니다 :
package com.cgi.recruitmenttest
import com.cgi.security.User
class Interviewee extends User{
String firstName
String lastName
String email
String telephone
String level
static hasMany = [results:Result,tests:TestInterviewe]
static constraints = {
lastName()
firstName()
email(email: true)
telephone(nullable: true)
level inList: ['Debutant', 'Confirme', 'Expert']
}
}
나는 결과와 테스트없이 인터뷰 대상자를 만들려고 노력하지만 삭제하면이 오류가 발생합니다 ..
누군가가 도와 줄 수 있습니까? 감사합니다
어떻게 지우시겠습니까? – injecteer
스캐 폴딩으로 기본 메소드 delete를 사용합니다. – Ewyldor