after the change described in TRQ41 (make getPrimaryKey return ObjectKey but 
getPkField return the 
type it is) it is not possible to set FKs to null .. which breaks some of my apps :-(

there are several ways to fix this:

a always use Objekt types for the internal representation (as in TRQ46)

b always use Objekt types (also for getters and setters)
   this would break everything, but we don't need the setNull(), isNull() methods

c use the Key types for internal representation of PKs and FKs

d revert the change


in case a and c we should add getters and setters using the Object type

e.g. if there is a FK CUSTOMER.CUSTOMER_ID you'll get:

int getCustomerId()
Integer|NumberKey getCustomerIdObject()   maybe we find a better name ..
void setCustomerId(int id)
void setCustomerId(Integer|NumberKey id)


comments?

martin





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to