• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Multiple Record insertion in one-to-many relationship

Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Greenhorns!,

I have a very curious case, where in a one-to-many relationshiop from entity A-to-B, when editing instance A and adding new records of B (all done through a web page, not an automated process), the added records of entity B are duplicated, so everytime I check records of instance B attached to A,they appear replicated two more times than expected in the database.

In my application there are many cases where I need to implement this kind of relationship, but this issue is arising in this very particular one. Moreover the process is done in a very similar manner in all cases (one page with an input control section, and another section containing a table where the registered records are displayed.

The only difference I can think of (which I realized while posting this topic), is that in this particular case, there is one field which is inputted through an <ice:inputRichtext/>, whereas in the other cases, none input control of this kind is used. Can that be the reason? I can doublecheck that. However I need this input control to be a richText control.

Can anybody give me any insight on what can this be due to?

Best regards and thanks in advance,
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you have cascading set up? If you are inserting them yourself, you only need to do one or the other.
    Bookmark Topic Watch Topic
  • New Topic