if you have time, also take a look at the EJB 3.0 entity guidelines, if you are using session bean facade they have a very nice POJO to RDBMS mapping.