I have a basic Parent one to many Child relatonship. I am running my application from a servlet, with a ProposalManager which accesses my dao's.
Here is my Proposal.hbm.xml:
Code:
<bag
name="resumes"
lazy="true"
inverse="true"
cascade="delete"
>
<key
column="proposalid"
/>
<one-to-many
class="Resume"
/>
</bag>
Everything works fine (listing all the resumes in a proposal), except when I delete a resume from the proposal. I delete using ResumeManager, but when I go back to the resume listing page, sometimes the resume I just deleted will still be there. If I hit refresh over and over, sometimes the just deleted one will be there, sometimes not.
It seems that it is not checking the database every time. This is not browser caching, because I am logging the number of resumes from my ProposalManager getProposal() function.