At work, a large enterprise application in Java, if briefly the situation is this, there is an entity ReportEdition in it there is a Report between them

 <many-to-one name="report" class="Report" cascade="save-update, evict, merge"> <column name="REPORT_ID" not-null="true"/> </many-to-one> 

It turns out that in a session, somehow, two Report with the same id

Questions:

  1. According to the debager in the session there is the essence of Report and ReportEdition , can they somehow conflict?
  2. Is it possible to somehow detach an object from a session without having a link to it
  3. How to track how and where the object falls into the session
  • A more specific example is Roman C

0