This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Many-to-Many reading problem

 
Carlos Conti
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all again,

thanks James Sutherland for solving my issue with the writing problem. Now I cannot see why the data once it's been successfully stored in the database, why is it not being read successfully aswell? This is all driving me a bit nuts!

here's the orm.xml code piece which puts both entities into relation:



So the point is, when establishing the relationships on both sides of the object, it performs correctly, but when reading its instances it will only perform the reading from entity 'comerciales' to 'ubicaciones' but not the other way around!!!
All this many-to-many relationship gets in the end a bit tricky to manage.

Does anybody see anything wrong? EclipseLink doesn't throw anything to clue me out!

Thanks in advance for your advise.
Carlos Conti.
 
Carlos Conti
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry folks, my fault. Within the methods responsible for maintaining coherence in the object model, I was missing unflagging listening to an event which erased the inmediate previous action. Not worth to mention anymore.

Regards,
Carlos.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic