Re: [JBoss-user] finder and two cmr-fields on same table problem

2003-12-12 Thread Heinz-Dieter Conradi
hi,

On Fri, 12 Dec 2003, Alexey Loubyansky wrote:

> Works for me. How do you configure the relationships?

i went and checked the relationships again - and found that there was
indeed a copy/paste error: both relationships had the same name.

at an earlier stage JBoss complained while deploying, that there where two
relations with the same 'role-name', but the same 'name' did not bother
it ;-(

thanks very much, heinz-dieter



---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] finder and two cmr-fields on same table problem

2003-12-12 Thread Alexey Loubyansky
Works for me. How do you configure the relationships? Do you have a 
testcase?

Heinz-Dieter Conradi wrote:
hi all,

i have just encountered the following problem, and i just don't know if i
am doing something really stupid or if i have run into a limitation of the
spec/jboss...
i have an entity bean which has two cmr-fields to the same table (bean):

public abstract class CrossingBean implements EntityBean {

[...]

  public abstract StreetLocal getStreet1();

  public abstract StreetLocal getStreet2();

[...]

}

where the StreetBean is another entity bean which has a 'street' property.

then i have defined a finder, whose xdoclet-tags looks as follows:

 * @ejb.finder
 *  signature="de.s_tec.vb2.server.beans.location.Crossing
 *  findByName(
 *  java.lang.String street1
 *  )"
 *  query="SELECT OBJECT(o)
 * FROM Crossing AS o
 * WHERE o.street1.street = ?1"
when deploying this bean i get an exception which says:

Unknown terminal field: at line 1, column 128.  Encountered: "street"
after: "o.street1.")
however, when i remove the 'street2' property from my bean, everything
deploys fine.
what is going on here? am i just stupid?

tia, heinz-dieter conradi



---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] finder and two cmr-fields on same table problem

2003-12-12 Thread Heinz-Dieter Conradi
hi all,

i have just encountered the following problem, and i just don't know if i
am doing something really stupid or if i have run into a limitation of the
spec/jboss...

i have an entity bean which has two cmr-fields to the same table (bean):

public abstract class CrossingBean implements EntityBean {

[...]

  public abstract StreetLocal getStreet1();

  public abstract StreetLocal getStreet2();

[...]

}

where the StreetBean is another entity bean which has a 'street' property.

then i have defined a finder, whose xdoclet-tags looks as follows:

 * @ejb.finder
 *  signature="de.s_tec.vb2.server.beans.location.Crossing
 *  findByName(
 *  java.lang.String street1
 *  )"
 *  query="SELECT OBJECT(o)
 * FROM Crossing AS o
 * WHERE o.street1.street = ?1"

when deploying this bean i get an exception which says:

Unknown terminal field: at line 1, column 128.  Encountered: "street"
after: "o.street1.")

however, when i remove the 'street2' property from my bean, everything
deploys fine.

what is going on here? am i just stupid?

tia, heinz-dieter conradi




---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user