Hi!

You are right. But I am about to commit to CVS my changes that make ID not required 
and for collections it will be possible to use "field-ref" attribute with the name of 
the field instead of "field-id-ref" with its ID.

Regards,
  Oleg

-----Original Message-----
From: [EMAIL PROTECTED]
To: OJB Users List <[EMAIL PROTECTED]>
Date: Thu, 2 Jan 2003 12:53:31 +1100
Subject: ID Values in field-descriptor

> I am trying to determine the rules for allocating the IDs in the
> field-descriptor for the repository.xml, particularly with references and
> collections. These are the rules I have determined so far:
> 
> 1) An ID must be unique within a table.
> 2) The IDs in the table do not need to be contiguous. There may be gaps in
> the sequence.
> 3) The IDs do not need to refer to the position of the column in the table.
> (This was mentioned in the DTD, but it is not required according to the
> code.)
> 4) For a reference or a collection the IDs in the two tables need to match.
> (method ObjectReferenceDescriptor.getForeignKeyDescriptors)
> 
> Can anyone confirm this or explain what the rules are?
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> 


-----
�������� ���������� �������� ���� @ukr.net �� http://freemail.ukr.net
    

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

Reply via email to