Tx a lot !
-----Message d'origine----- De : Ricardo Tercero Lozano [mailto:[EMAIL PROTECTED] Envoyé : vendredi 8 août 2003 19:16 À : 'OJB Users List' Objet : RE: RE : RE : BIGINT to Long, FieldConversion ? You have to put the B instance. If there is a relation between the two classes in repository.xml you must use object instances. Otherwise you must use the class A field id attribute. Ricardo. -----Original Message----- From: Emmanuel Dupont [mailto:[EMAIL PROTECTED] Sent: viernes, 08 de agosto de 2003 18:56 To: 'OJB Users List' Subject: RE : RE : BIGINT to Long, FieldConversion ? Thanks Ricardo ! I would like to know wich kind of link you do : Object A have a reference to B, called bB. If I want to insert in db A, Have to do : A.setbB(instanceB); Or A.setb_FK(id_B_PK); Should I set the bB instance or the FK_Id ? Because I seems that with small long I can do only setb_FK() and with bib Long I have to set the B instance reference. Thanks for your reply ... -----Message d'origine----- De : Ricardo Tercero Lozano [mailto:[EMAIL PROTECTED] Envoyé : vendredi 8 août 2003 18:34 À : 'OJB Users List' Objet : RE: RE : BIGINT to Long, FieldConversion ? I use BIGINT for my primary keys and Long for class fields and everything goes ok. Ricardo. -----Original Message----- From: Emmanuel Dupont [mailto:[EMAIL PROTECTED] Sent: viernes, 08 de agosto de 2003 18:29 To: 'OJB Users List' Subject: RE : BIGINT to Long, FieldConversion ? More information : it faills on the FK key (not null column), null is put in the "assignReferenceFKs" method from PersistenceBrokerImpl... -----Message d'origine----- De : Emmanuel Dupont [mailto:[EMAIL PROTECTED] Envoyé : vendredi 8 août 2003 17:35 À : OJB Users List Objet : BIGINT to Long, FieldConversion ? All, I would like to have a Long type in my jdo Object. But the jdbc mapping tells that for a BIGINT it is a long (small). So Could I use the Field conversion class ? I try to use it with the "Int2IntegerFieldConversion" sample and I created a "long2LongFieldConversion". But it doesn't work ! Any help would be really appreciated ! --------------------------------------------------------------------- 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] --------------------------------------------------------------------- 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]