This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I need to map a POJO to different tables/columns. In my application I have a Search option where the search filters are fetched from different tables. For e.g there are drop downs on the search page with each containing primary keys of corresponding tables. The search option is performed on a different table with the selected values. Once a user selects any of the displayed rows I have to update another table in the database with the values. Can the same POJO be mapped to different tables. I dont need a JOIN or MANY-TO-MANY sort of mapping in this case.
During the search I fetch values from the Make and Model table and display them in drop downs. If the user selects any of the result and clicks Update I have to update Table4 with the values. How do I go about this?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Hibernate mapping pojo/fields to different tables.