hello, we have the following problem: 1) our domain objects have identification 'int'. 2) foreign keys are also integers. what value should have this integer set in the case, when association is not present? 0 in java is mapped to 0 in database. we have created field conversion which map 0 -> null and vice versa.
this is all ok. problem is: (class A has 0..1 association to class B.) when we load instance of A with no association to instance of B, we receive proxy to null object (instance of B cannot be materialized of cource). when we try to invoke any methods, we receive NullPointerException. why we don't receive 'null' instead of proxy to 'null'? thanks for you help. pr -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>