Hello,
I have nhibernate 3.2 GA
Could anybody tell me why the method: protected override SqlCommandInfo GenerateDeleteString()
in OneToManyPersister class creates an UPDATE command ?! protected override SqlCommandInfo GenerateDeleteString() { SqlUpdateBuilder update = new SqlUpdateBuilder(Factory.Dialect, Factory) .SetTableName(qualifiedTableName) .AddColumns(KeyColumnNames, "null") .SetIdentityColumn(KeyColumnNames, KeyType);
I was expecting a DELETE command. The reasons that I ask is because in one of my tests I get the following exception:NHibernate.Exceptions.GenericADOException: could not delete collection: [DDS.RPL.POC.DAL.Parent.Child#62][SQL: UPDATE Child SET PARENTID = null, ID = null WHERE PARENTID = :p0] ---> Oracle.DataAccess.Client.OracleException: ORA-01407: cannot update ("RPL_NH"."CHILD"."ID") to NULL
Thank you, Andrei
|