A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
EJB and other Java EE Technologies
insert null in FK field (set null in cmr field ) CMP 2.0
Joined: Jan 15, 2003
Jul 18, 2008 01:34:00
How can i store null value in cmr field which has many to one relationship with other entity, null values are allowed in fk field.
Should i set null in cmr field or should i not call setter method on cmr field to store null?
I agree. Here's the link:
subject: insert null in FK field (set null in cmr field ) CMP 2.0
What if the PK is also a FK ???
Confused a little, alot
CMR vs. Explicit FK mapping
CMR Relations one-to-many
Container trying to save CMR field
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013