Hi,
Here's the problem : I have several objects (instances of A) that contain a map<String, B>.
Each map can contains the same B. I have also a main object (instance of C) that contains list of A. so 'c' contains a list of a1 a2 a3, each a contains a map of (key string) and (value the same b1) : c -- a1 -- <string,b1> -- a2 -- <string,b1> -- a3 -- <string,b1>
I cannot save this object, it leads me to : ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'SQL091127164652311' defined on 'A_TABLE_NAME.
It works perfectly if I use b1, b2, and b3 (3 different instances) instead of b1 three times. Is someone can tell me what is the problem and how to correct it ?
thx, JL.
|