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:
- According to the debager in the session there is the essence of
ReportandReportEdition, can they somehow conflict? - Is it possible to somehow detach an object from a session without having a link to it
- How to track how and where the object falls into the session