The moose likes Object Relational Mapping and the fly likes Composite Primary key mapping problem with one-to-one Relation Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Composite Primary key mapping problem with one-to-one Relation" Watch "Composite Primary key mapping problem with one-to-one Relation" New topic
Author

Composite Primary key mapping problem with one-to-one Relation

jidhendra kumar
Greenhorn

Joined: Sep 25, 2004
Posts: 7
Hi Friends,

I have two tables

In First table
for example

First Table:- Connection
Columns -- connectionId, ConnectionIndex, PairId, cabletype.

In this table connectionId, ConnectionIndex, PairId declared as a composite primary key.

secound Table:- ConnectionPair
Columns: pairId, DeviceId, PortId, cableType.
PairId declared as a primary key.

This two table having one-to-one relation

In the same maner i am doing all xml mapping and POJO files but it is throwing an exception called

Caused by: net.sf.hibernate.MappingException: duplicate import: ConnectionVO

I am facing this problem.


Please any one can suggest how can i reslove this ..


Thanks,
M. Jidhendra Kumar.








Caused by: net.sf.hibernate.MappingException: duplicate import:
 
 
subject: Composite Primary key mapping problem with one-to-one Relation
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com