daily pastebin goal
76%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top