You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Emmanuel Dupont <em...@jwaretechnologies.com> on 2003/08/08 17:35:07 UTC
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 !
RE : RE : RE : BIGINT to Long, FieldConversion ?
Posted by Emmanuel Dupont <em...@jwaretechnologies.com>.
Tx a lot !
-----Message d'origine-----
De : Ricardo Tercero Lozano [mailto:rtercero@isoco.com]
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:emmanuel.dupont@jwaretechnologies.com]
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:rtercero@isoco.com]
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:emmanuel.dupont@jwaretechnologies.com]
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:emmanuel.dupont@jwaretechnologies.com]
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: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
RE: RE : RE : BIGINT to Long, FieldConversion ?
Posted by Ricardo Tercero Lozano <rt...@isoco.com>.
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:emmanuel.dupont@jwaretechnologies.com]
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:rtercero@isoco.com]
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:emmanuel.dupont@jwaretechnologies.com]
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:emmanuel.dupont@jwaretechnologies.com]
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: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
RE : RE : BIGINT to Long, FieldConversion ?
Posted by Emmanuel Dupont <em...@jwaretechnologies.com>.
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:rtercero@isoco.com]
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:emmanuel.dupont@jwaretechnologies.com]
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:emmanuel.dupont@jwaretechnologies.com]
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: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
RE: RE : BIGINT to Long, FieldConversion ?
Posted by Ricardo Tercero Lozano <rt...@isoco.com>.
I use BIGINT for my primary keys and Long for class fields and
everything goes ok.
Ricardo.
-----Original Message-----
From: Emmanuel Dupont [mailto:emmanuel.dupont@jwaretechnologies.com]
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:emmanuel.dupont@jwaretechnologies.com]
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: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
RE : BIGINT to Long, FieldConversion ?
Posted by Emmanuel Dupont <em...@jwaretechnologies.com>.
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:emmanuel.dupont@jwaretechnologies.com]
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: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org