JBossDruid will help you to quickly create a JBoss 2.x CMP Entity Bean based on a database table and its columns that you specify.