Quote:
BTW - What would be great is in HBM to denote a relationship - but not have it considered in loading the POJO. I would like to tell Hibernate - when a person is deleted - to go out and delete any ClubMember records that it is in. But also that i really do not want users of the Person POJO to inspect or muddle with the relationship. This sounds to me like an attribute could be added to just about any mapping element as "silent". Meaning i could still use it in Queries or for helping cascades - but I just don't want the state ever loaded. (A bit different from lazy)
Actually it's exactly the same as mapping the collection as lazy to a private property or field which is not exposed to the users of your Person class. Then just define the appropriate cascade semantics on the collection mapping. This approach makes you initial question mute.