Re,
my envers configuration is good, i have a thousand of revisions but i don't know why, when i try to create an object, i have constantly this error :
11-10-06 14:40:17 [main] ERROR ..... - org.springframework.dao.DataIntegrityViolationException: Could not execute JDBC batch update; SQL [insert into schema.Action (ACTN_cd_vecteur_modif, ACTN_dt_action, ACTN_nom_auteur, ACTN_profil_auteur, no_action) values (?, ?, ?, ?, ?)]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update org.apache.axis2.AxisFault: org.springframework.dao.DataIntegrityViolationException: Could not execute JDBC batch update; SQL [insert into schema.Action (ACTN_cd_vecteur_modif, ACTN_dt_action, ACTN_nom_auteur, ACTN_profil_auteur, no_action) values (?, ?, ?, ?, ?)]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update I don't know which value is null, if it's the no_action or the date, and i don't know how to do? Some one have an idea? Thanks for your Help ! Stephane
Hmm this really looks like a Hibernate problem, not an Envers one - the insert is happening to the regular, not audit schema, right?
Anyway, I would try debugging to see if you are not calling persist on an entity which has some fields null.
Adam