Hi Guido, Please provide the repository fragment relevant to your classes, specifically where you make reference,
Sergey -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 1:00 PM To: [email protected] Subject: ArrayIndexOutOfBoundsException at 1:N relationship Hi, I have a problem with a java.lang.ArrayIndexOutOfBoundsException: 1 I have the following: class A { Integer pkA }; class B { Integer pkA // is PK Integer pkB // is PK too Integer otherField; }; B has 2 primary key fields and A only one. So the first field pkA of Class (and table ) B is the primary key of Class (and table) A. >From point of view of A it is a 1:N relationship. I have a repository with a collection descriptor at A and a reference descriptor at B and both are working when I turn on autoload. I would like to query A and get all A where B.otherField=SomeValue. This produces the ArrayIndexOutOfBoundsException. Can the problem be that B has no own pk field so that B.pkA is part of the primary key of the table B and part of a reference descriptor (and part of the collection descriptor of A) ? best regards, Guido --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ********************** ** LEGAL DISCLAIMER ** ********************** This E-mail message and any attachments may contain legally privileged, confidential or proprietary information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution or copying of this E-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this E-mail message from your computer. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
