aspose file tools*
The moose likes Object Relational Mapping and the fly likes Hibernate mapping pojo/fields to different tables. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate mapping pojo/fields to different tables." Watch "Hibernate mapping pojo/fields to different tables." New topic
Author

Hibernate mapping pojo/fields to different tables.

Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1


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.

For e.g

POJO:-

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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate mapping pojo/fields to different tables.