EJB programming & troubleshooting: Strange Container behaviour regarding CMP entity beans

  1. Hi, I have two entity beans (2.1) with a "one to many" relationship. When I try to save a new entity (the 'many' one), the Container is performing an SQL "UPDATE" on the first entity (the 'one'). It does not make any sense to me. Do you have any ideas? Thanks in advance.
  2. Hi Ronen, I'm very new to this, but might it have something to do with the CascadeType you have assigned to the relationship? Otherwise, can you see what the full UPDATE command is that is being executed on the first entity? Hope you come right... Cheers, Chris