I was looking into hibernate code in performsaveorupdate It calls ForeignKeys.nullifyTransientReferences this method nullifies treansient instances from an entity I don,t know when this would nullify transient instances , can
hibernate gurus here explain me what this methd does ?
posted 8 years ago
did a bit of digging, here we go and I think Hibernate folks need someone to javadoc their stuff dammit! (and format their source, perhaps?):
If a foreign key points to a transient instance ... your SQL flush is definitely going to fail ... so its safe to nullify.