Hi all,
I am using appfuse 1.9x and webwork as the web framework. I'm trying
to build an application to manage studies but Im encountering some
problems. The relationship of POJOs is like this, Study has many
Studypageset(1 to many) and Studypageset has many studyPage (1 to many).
I must create a Study object first before i could add studypage/s
(equivalent to studies). Studypageset is for grouping of studypages for
each studies. Now, I could add new studypages to studypageset and save
it to its parent study but heres my problem whenever i edit then save a
studypage in the different action i could get this kind of error:
*a different object with the same identifier value was already
associated with the session:
[com.voxsant.thinkscan.model.StudyPageSet#2]; nested exception is
org.hibernate.NonUniqueObjectException: a different object with the same
identifier value was already associated with the session:
[com.voxsant.thinkscan.model.StudyPageSet#2]
*
* org.springframework.orm.hibernate3.HibernateSystemException: a different
object with the same identifier value was already associated with the session:
[com.voxsant.thinkscan.model.StudyPageSet#2]; nested exception is
org.hibernate.NonUniqueObjectException: a different object with the same
identifier value was already associated with the session:
[com.voxsant.thinkscan.model.StudyPageSet#2]
Caused by: org.hibernate.NonUniqueObjectException: a different object with the
same identifier value was already associated with the session:
[com.voxsant.thinkscan.model.StudyPageSet#2]*
* *I dont really know what could the possible errors here so pls help
me. *
* I also used session to save some of the attributes of the studypage
because i cant placed it in a hidden field because it is an object
reference. I dont if this approach is good... can you pls advice me
some better practice here.
* *
sorry I am new to all these frameworks.
kindest regards,
Melchedick Pison
*
*