|
Hi,
We are using hibernate on a project I am working on and I can't figure out why it is saving certain data.
We have an Issue object, and each Issue has one associated ProfileVersion. This ProfileVersionshould *not* ever be saved by Hibernate. While we do need to save the Issue, all we ever need to do is read the ProfileVersion -- Never save it or update the ProfileVersion through Hibernate. What is the best way to ensure this? I have our configuration for the Issue object saying:
<many-to-one name="profileVersion" class="com.fifththird.cit.model.ProfileVersion"
fetch="select" cascade="none">
But still I see in the logs where hibernate is trying update statements on the ProfileVersion table, and this is busting our code. Thanks in advance if anyone can help, or just for taking the time to read my post! :],
Jim
|