Error on insert manyToMany when a postgres trigger is execute on table after insert event #11803
Unanswered
matlow
asked this question in
Support Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I hope you could help. I want to log some operation in postgres database with trigger function and implement auditing function like this one https://www.postgresql.org/docs/current/plpgsql-trigger.html
There is my problem :
I have 2 entities : entityA which has a many to many relationship with entity B with join table named "tableA_tableB"
When i persist new entity A, a new entity B is also persisted.
But i got an error if i had a postgresql trigger function on tableA to log insert operation.
There is the postgresql trigger :
TableA and tableB use serial type on primary key.
Could you help me to know why the ManyToManyPersister launch this exception ?
Thx
Beta Was this translation helpful? Give feedback.
All reactions