0
我有2個表如下休眠:在同一個表中的自我參照FK以及不同的表
historyQuestions
=====================
question_id bigint(2) PK
question_master_id bigint(2) fk references question_master(question_id)
parent_question_id bigint(2) fk references historyQuestions(question_id)
parent_answer_id bigint(2) fk references historyAnswers(answer_id)
historyAnswers
=====================
answer_id bigint(2) pk
question_id bigint(2) fk references historyQuestions(question_id)
answer_master_id bigint(2) fk references answer_master(answer_id)
現在我想使用Hibernate
session.save(entityObj)
新插入的記錄,但它給了我
exception org.hibernate.StaleStateException
任何幫助將appriciate ..