Guest User

Untitled

a guest
Jun 13th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <class name="Customer">
  2. <set name="Address" batch-size="3">
  3. ...
  4. </set>
  5. </class>
  6.  
  7. - The last visited address.
  8. - The closest address to the customer address.
  9. - The latest (added) address
  10.  
  11. Address GetLastVisited(Customer c);
  12. Address GetClosest(Customer c);
  13.  
  14. <bag name="Addresses" where="CurrentAddressFlag = 1" cascade="save-update" fetch="select" lazy="true">
  15. <key column="AddressId"/>
  16. <one-to-many class="Address"/>
  17. </bag>
Add Comment
Please, Sign In to add comment