NH doesn´t persist when saving an Entity but there are no errors

15 views
Skip to first unread message

graffitiMSX

unread,
Oct 16, 2012, 12:30:11 PM10/16/12
to fluent-n...@googlegroups.com
Hello,

I have a Entity with a composite key (4 keys), and one of the keys is another entity.

When I call the Save(entity) method, the entity isn´t sent to DB, but no errors are generated. Other entities are correctly saved to DB.

I don´t know if it is correct, but the mapping of this entity has the other entity as a property and the Id (used for the key):


TripSent tripSent = new TripSent();
tripSent.Remittance = remittance; // already created (and saved) entity
tripSent.remittanceId = remittance.Id; // the id for the above entity
tripSentDao.Save(tripSent); // this has no effect, no SQL is been generated.

Thanks in advance.

Rudolf
Reply all
Reply to author
Forward
0 new messages