Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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

Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ..

M. Jidhendra Kumar.

Caused by: net.sf.hibernate.MappingException: duplicate import:
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic