uhhmmm.... if you use e.g. hibernate, it will do it for you. Is a lot easier View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217249#4217249 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217249