Might be interested in this: http://www.onjava.com/pub/a/onjava/2005/12/07/relational-object-mapping.html T.