• 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 ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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,
Carlos.
 
Greenhorn
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.
 
Do you want ants? Because that's how you get ants. And a tiny ads:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic