http://www.mkyong.com/hibernate/inverse-true-example-and-explanation/
A related topic here:
http://kaqi.iteye.com/blog/1345319