Orion only supports a partial ejb2.0 spec - an older one at that. I don't believe it 
supports
many-many out of the box....more ejb2.0 coming up!
--- Christoph Sturm <[EMAIL PROTECTED]> wrote:
> Hi all!
> 
> I'm trying to get some cmp2.0 beans with relations running on orion
> 1.5.2.
> 
> 
> I have two beans: Article and Category, and a m:n relation between
> them.
> 
> in CategoryBean.java i have:
>     public abstract java.util.Collection getArticles();
> and in ArticleBean:
>     public abstract java.util.Collection getCategories();
> 
> and in ejb_jar.xml:
> 
>    <relationships>
>       <ejb-relation>
>          <ejb-relation-name>article-category</ejb-relation-name>
> 
>          <ejb-relationship-role>
> 
>            
> 
><ejb-relationship-role-name>many-category-has-many-article</ejb-relationship-role-name>
>             <multiplicity>Many</multiplicity>
>             <!--relationship-role-source-->
>             <role-source>
>                <ejb-name>Article</ejb-name>
>             </role-source>
>             <!--/relationship-role-source-->
>             <cmr-field>
>                <cmr-field-name>categories</cmr-field-name>
>                <cmr-field-type>java.util.Collection</cmr-field-type>
>             </cmr-field>
>          </ejb-relationship-role>
> 
>          <ejb-relationship-role>
> 
>            
> 
><ejb-relationship-role-name>many-article-has-many-category</ejb-relationship-role-name>
>             <multiplicity>Many</multiplicity>
>             <!--relationship-role-source-->
>             <role-source>
>                <ejb-name>Category</ejb-name>
>             </role-source>
>             <!--/relationship-role-source-->
>             <cmr-field>
>                <cmr-field-name>articles</cmr-field-name>
>                <cmr-field-type>java.util.Collection</cmr-field-type>
>             </cmr-field>
>          </ejb-relationship-role>
> 
>       </ejb-relation>
>    </relationships>
> 
> orion keeps complaining:
> Method public abstract java.util.Collection 
>redact.ejb.beans.CategoryBean.getArticles()
> can not be declared abstract.
> 
> TIA
>  chris
> 
> 


__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

Reply via email to