File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Object Relational Mapping
Multiple one to one mapping (mapping one table to multiple table with one to one mapping)
Joined: Aug 04, 2011
Sep 13, 2011 09:46:39
I want to map my table1 to tbale2, table3, and table 4 by one to one mapping.
I am able to do this by using simple one to one mapping.
Whats the problem?
What i want is if table has 9 rows with id, 1,2,3,4,5,6,7,8,9
tabele2, table3, and table 4 should look , say:
How can i do this in hibernate? can i do this atall?
Joined: Oct 25, 2008
Sep 14, 2011 05:17:27
I don't get what you want. Could you explain it a bit further? Hibernate/JPA is used for mapping entities and I doubt that is what you are trying to do here.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
I agree. Here's the link:
subject: Multiple one to one mapping (mapping one table to multiple table with one to one mapping)
Hibernate Query for multiple tables
inserting values to the database from table
Mapping of three tables
Hibernate - how to map cross-table dependence?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014