title: hibernate mapping "rules"
body: <p>Is it possible to do a one-to-one mapping to a property, not using primary keys? Basically, what i want to do is to have a property in my "Parent" class, which only holds one reference to one of its children, based on some rule. For example, it could be "last added child". I know this is fairly simple to do with queries, but is it possible to have "intelligent" properties? So you dont have to write anything besides .load(Parent.class, pk) and then work with the instance from there on.</p>
  
  <p>Same question applies for one-to-many relationships, would it be possible to apply rules for that as well? And finally, would it be possible to integrate these rules with paramenters to the getmethod?</p>
  
  <p>So you could have a getChildren(from, to) ish method :)</p>