Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <set name="ops" inverse="true" cascade="all, delete-orphan">
- <key column="cityblock_id" on-delete="cascade"/>
- <one-to-many class="com.tamedtornado.data.Operation"/>
- </set>
- from ops where status="active"
- List activeOperations = sess.createCriteria(Operation.class)
- .add( Restrictions.equals("status", "active") )
- .list();
Add Comment
Please, Sign In to add comment