I Found that the problem come if before the commit I made a rollback operation.
If I don't made any rollback all commits work fine.
If a made a rollback any other commit after this that try to change idregioni field will generate the error.
Gabriele Fain wrote:Hello,
I write a desktop application and it work fine but today a class for insert some values don't work.
I have a class regioni (like a list of states) that in used in OneToOne relations in 3 other tables.
In one of this today it not work .
This are the two classes
and the oder class is
in the code I made
I get this error and I don't understand why
Call: INSERT INTO regioni (id, codtessera, nome) VALUES (?, ?, ?)
bind => [1, 03, abccc]
It seems like it try to insert a record in the regioni table and I dont't understad why.
In other classs that have the same OneToOne join to table regioni I don't have the same problem.
Can someone help me ?
Best regards.