Joined: Thu May 27, 2004 9:14 am Posts: 11
|
hibernate 3.0.5
I'm having problems deleting entities. I have a dao layer in which I pass in the ID only and not the class. This is done mainly so that I don't have to take a round trip to the db if I receive just an ID from the client tier.
So I don't want to have to call the dao layer to find an object by id then delete it for a simple delete operation (2 round trips to the db).
The error returned is:
not-null property references a null or transient value: com.verisign.caf.refapp.domainobject.Channel.channelName; nested exception is org.hibernate.PropertyValueException: not-null property references a null or transient value: com.verisign.caf.refapp.domainobject.Channel.channelName
I understand that the Channel.channelName is a not-null field but why should that matter if I'm essentially just trying to excercise a delete which references only the ID field and not the channelName field in particular?
Also I've tried this with and without a sql-delete in the mapping file.
Thanks,
Cory
|
|