This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Mapping Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Mapping Question" Watch "Mapping Question" New topic
Author

Mapping Question

Anne Abraham
Greenhorn

Joined: May 08, 2011
Posts: 3
I am using hibernate and spring 3.0 web mvc. I have a table A for which I have created a model class A(referred to as entity). Can I make a mapping from this entity class A to a table B that has no entity class defined for it, because it doesn't have to be a persistence object. I just need information from the table B to be manipulated inside the class A. Please help. I am pretty confused what annotations to use at this point.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Mapping Question
 
Similar Threads
Eager Fetching a Polymorphic SET
issues with hibernate lazy settings
Create tables in different database schemas using EJB 3 Entity Persistent
mapping one pojo with multiple tables
Best inheritance mapping strategy..