• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate mapping producing duplicate data from DB  RSS feed

James Peters
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have got some mapping that is repeating data assignment for e.g.

I have a Twins table for holding Twin door terminal references and the only Terminals in the database are A1(1) and B1(2). The Twins table has two columns terminalOneID and terminalTwoID as well as an id column for the row. The current data in there... terminalOneID: 1 and terminalTwoID: 2... these link to A1 and B1 terminals in the Terminal table. Whenever I output the IDs of the twin terminals during initializing of the building I am given A1, A1. Could you tell me if this is something to do with my Hibernate mapping? I am new to Hibernate and cannot find a solution.

Here are the relevant XML mapping files:



  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!