My doubt is why hibernate is going for an update operation in to ADDR table after doing a insert in ADDR table and how to prevent it. I've tried with all the possible combination of unsaved-value attributes in both the valueobjects/tables.
Also please can any one cleary explain the meaning of unsaved-value attributes and its possible values and how it is realted to the object beign persisted.
I have the same problem , this is my code , hibernate is performing an unnecessary update , an giving me this error message.
Hibernate operation: Could not execute JDBC batch update; bad SQL grammar [/* update ec.gov.iess.modelo.fondoreserva.Calificacion */ update FRAFITACTCES set CREMORHPHL=? where CEDULA=?]; nested exception is java.sql.BatchUpdateException: ORA-01031: insufficient privileges ".
this is my the entity code:
I started getting this error after adding a new private member and its setter and getter