yeps, works correctly, due to the reflection methods the "long" is actually converted to "Long" eg in the auto-increment functionallity of OJB. I have written everyting in objects in stead of primitives to be able to use "nulls" in the database and be somewhat more flexible. dunno if it has some performance inpact.
if you encounter any problems with the conversion of the database type to the java type you can always use a "home made" FieldConversion to do it the right way. (done it my self with Strings and Clobs in oracle, dont use the oracle driver but a 3e party driver and it works great) -----Original Message----- From: Emmanuel Dupont [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 2:12 PM To: 'OJB Users List' Subject: RE : How to insert a long / FK nullable with a null value ? Yes, it works, but I wonder if everything will be fine, because of the jdbc conversion type. It is specified in the OJB documentation that a jdbc BIGINT is mapped to a long, could I really use Long safety ? -----Message d'origine----- De�: Bram Meijboom [mailto:[EMAIL PROTECTED] Envoy�: mardi 8 juillet 2003 12:36 ��: 'OJB Users List' Objet�: RE: How to insert a long / FK nullable with a null value ? make it a Long object and set it to null .... -----Original Message----- From: Emmanuel Dupont [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 12:33 PM To: OJB Users List Subject: How to insert a long / FK nullable with a null value ? All, I have a table with a Foreign Key witch is null able. The JDO's java object's attribute associated to this table's column is a "long". My trouble is that OJB insert "0" each time nothing is specified in the JDO attribute. But '0' is not a good thing for my application; I would like to have null value. But how could I have a null value with a long type ?? Thanks a lot! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
