Q: biz logic implemented where?
A: beans representing db entities.
Q: explain the many-to-one:
<class name="test.hibernate.OrderItem"
table=”order_items”>
<many-to-one name="order"
class=”test.hibernate.Order”
column=”order_id” />
<many-to-one name="product"
A: first many-to-one means many of this (OrderItem) linked to one
order. ANY link like this requires a link-column/join-column, which is
“order_items.order_id”