a guest Jun 13th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- <class name="Customer">
- <set name="Address" batch-size="3">
- - The last visited address.
- - The closest address to the customer address.
- - The latest (added) address
- Address GetLastVisited(Customer c);
- Address GetClosest(Customer c);
- <bag name="Addresses" where="CurrentAddressFlag = 1" cascade="save-update" fetch="select" lazy="true">
- <key column="AddressId"/>
- <one-to-many class="Address"/>
RAW Paste Data