RE: repository_user.xml, reverse-db and field indexes

2003-03-03 Thread Anthony Kong
Hi, Ricardo,

Currently I am still using 0.9.8. In 0.9.8 the first field id must start
with "1" and no hole should be allowed in the numbering of the field id's.
(i.e. must be "1, 2, 3, 4" instead of "0, 12, 23, 14").

The reverse-db currently cannot generating the field id in the proper way.
If you are using 0.9.8 or before, you would have to manually edit the id.


Regards,

Anthony

-Original Message-
From: Ricardo Tercero Lozano [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 1:45 AM
To: OJB Users List
Subject: RE: repository_user.xml, reverse-db and field indexes


New information:


Field descriptor indexes can begin with "0" (there's no complaints)
but if I put a reference-descriptor with a foreign-key id = "6",
OJB gets the bean for the previous field-id (as it starts counting with
"1").


Ricardo.




-Mensaje original-
De: Ricardo Tercero Lozano [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 03 de marzo de 2003 18:24
Para: [EMAIL PROTECTED]
Asunto: repository_user.xml, reverse-db and field indexes



I found than if list of field descriptors inside a class descriptor in
repository_user.xml
don't work properly if field indexes begin with "0" (as generated by
reverse-db) and
reference descriptors are defined for some fields. Key values were loaded
right, but
some associated beans are loaded and some not.

This behavior was found for a table with 4 references to another table (4
types of users of
class UserBean). I use OJB 0.9.9.

Ricardo.


-
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]



RE: repository_user.xml, reverse-db and field indexes

2003-03-03 Thread Ricardo Tercero Lozano
New information:


Field descriptor indexes can begin with "0" (there's no complaints)
but if I put a reference-descriptor with a foreign-key id = "6",
OJB gets the bean for the previous field-id (as it starts counting with
"1").


Ricardo.




-Mensaje original-
De: Ricardo Tercero Lozano [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 03 de marzo de 2003 18:24
Para: [EMAIL PROTECTED]
Asunto: repository_user.xml, reverse-db and field indexes



I found than if list of field descriptors inside a class descriptor in
repository_user.xml
don't work properly if field indexes begin with "0" (as generated by
reverse-db) and
reference descriptors are defined for some fields. Key values were loaded
right, but
some associated beans are loaded and some not.

This behavior was found for a table with 4 references to another table (4
types of users of
class UserBean). I use OJB 0.9.9.

Ricardo.


-
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]



Re: repository_user.xml, reverse-db and field indexes

2003-03-03 Thread Thomas Mahler
Hi Ricardo,

field index are not needed for a while. Please just drop the id="..." 
attributes.

cheers,
Thomas
Ricardo Tercero Lozano wrote:
I found than if list of field descriptors inside a class descriptor in
repository_user.xml
don't work properly if field indexes begin with "0" (as generated by
reverse-db) and
reference descriptors are defined for some fields. Key values were loaded
right, but
some associated beans are loaded and some not.
This behavior was found for a table with 4 references to another table (4
types of users of
class UserBean). I use OJB 0.9.9.
Ricardo.

-
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]