This content has been marked as final.
Show 1 reply
-
1. Re: Getting error: Not-null property references a null or tr
srose Jul 28, 2005 8:33 AM (in response to srose)I figured it out. I was setting a entity beans primary key value then passing it into the session bean method which then calls the entity manager remove method. This works fine when I do not have a notnull constraint defined in the entity bean but when there are not null fields, it tries to validate those fields before deleting. I fixed it by using the primary key to get a instance of the entity bean I am about to delete. This is probably a better practice anyways and seems to work well. Hope this helps anyone else who has had this problem.