Mapping POJO to Entities
问题 In our project we have a constraint of not having the luxury to alter the table structure already in place. The tables are highly denormalized in nature. We have come up with good POJOs for the application. We have the Entity beans generated out of the exiting tables. Now we have to map the POJOs to the entities so that we can persist. Ultimately, we combine a good POJO with a bad table. Any thoughts on options/alternatives/suggestions to this approach? 回答1: Hibernate/JPA(2) has a rich set of