ejb 2.0 relations in orion
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-namearticle-category/ejb-relation-name ejb-relationship-role ejb-relationship-role-namemany-category-has-many-article/ejb-relationship-role-name multiplicityMany/multiplicity !--relationship-role-source-- role-source ejb-nameArticle/ejb-name /role-source !--/relationship-role-source-- cmr-field cmr-field-namecategories/cmr-field-name cmr-field-typejava.util.Collection/cmr-field-type /cmr-field /ejb-relationship-role ejb-relationship-role ejb-relationship-role-namemany-article-has-many-category/ejb-relationship-role-name multiplicityMany/multiplicity !--relationship-role-source-- role-source ejb-nameCategory/ejb-name /role-source !--/relationship-role-source-- cmr-field cmr-field-namearticles/cmr-field-name cmr-field-typejava.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
Re: ejb 2.0 relations in orion
Orion only supports a partial ejb2.0 spec - an older one at that. I don't believe it supports many-many out of the boxmore 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-namearticle-category/ejb-relation-name ejb-relationship-role ejb-relationship-role-namemany-category-has-many-article/ejb-relationship-role-name multiplicityMany/multiplicity !--relationship-role-source-- role-source ejb-nameArticle/ejb-name /role-source !--/relationship-role-source-- cmr-field cmr-field-namecategories/cmr-field-name cmr-field-typejava.util.Collection/cmr-field-type /cmr-field /ejb-relationship-role ejb-relationship-role ejb-relationship-role-namemany-article-has-many-category/ejb-relationship-role-name multiplicityMany/multiplicity !--relationship-role-source-- role-source ejb-nameCategory/ejb-name /role-source !--/relationship-role-source-- cmr-field cmr-field-namearticles/cmr-field-name cmr-field-typejava.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
SV: ejb 2.0 relations in orion
Hi. You currently need to have your CMR fields as cmr-field in ejb-jar.xml. That should fix your problem. WR -Ursprungligt meddelande- Fran: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]For Ray Harrison Skickat: den 9 oktober 2001 16:37 Till: Orion-Interest Amne: Re: ejb 2.0 relations in orion Orion only supports a partial ejb2.0 spec - an older one at that. I don't believe it supports many-many out of the boxmore 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-namearticle-category/ejb-relation-name ejb-relationship-role ejb-relationship-role-namemany-category-has-many-article/ejb-re lationship-role-name multiplicityMany/multiplicity !--relationship-role-source-- role-source ejb-nameArticle/ejb-name /role-source !--/relationship-role-source-- cmr-field cmr-field-namecategories/cmr-field-name cmr-field-typejava.util.Collection/cmr-field-type /cmr-field /ejb-relationship-role ejb-relationship-role ejb-relationship-role-namemany-article-has-many-category/ejb-re lationship-role-name multiplicityMany/multiplicity !--relationship-role-source-- role-source ejb-nameCategory/ejb-name /role-source !--/relationship-role-source-- cmr-field cmr-field-namearticles/cmr-field-name cmr-field-typejava.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
Re: SV: ejb 2.0 relations in orion
Hi Magnus! Hi. You currently need to have your CMR fields as cmr-field in ejb-jar.xml. That should fix your problem. What do you mean exactly? I have my fields defined as cmr-field can you tell my whats wrong with the snippet below? relationships ejb-relation ejb-relation-namearticle-category/ejb-relation-name ejb-relationship-role ejb-relationship-role-namemany-category-has-many-article/ejb-re lationship-role-name multiplicityMany/multiplicity !--relationship-role-source-- role-source ejb-nameArticle/ejb-name /role-source !--/relationship-role-source-- cmr-field cmr-field-namecategories/cmr-field-name cmr-field-typejava.util.Collection/cmr-field-type /cmr-field /ejb-relationship-role ejb-relationship-role ejb-relationship-role-namemany-article-has-many-category/ejb-re lationship-role-name multiplicityMany/multiplicity !--relationship-role-source-- role-source ejb-nameCategory/ejb-name /role-source !--/relationship-role-source-- cmr-field cmr-field-namearticles/cmr-field-name cmr-field-typejava.util.Collection/cmr-field-type /cmr-field /ejb-relationship-role /ejb-relation /relationships WR
ejb 2.0 relations in orion 1.4.3 broken ?
The current ATM example uses EJB 2.0 definitions of ont-to-many relationships (account_owner - account) . When I deployed it on orion 1.4.3 it workes quite well until I added some accounts. After shutting down orion and re-login all accounts are lost. A quick look into the hsql file (.script) revealed that there was no INSERT statement for the ACCOUNTOWNER_ACCOUNTS table at all, where the set-mapping between the AccountOwner and Account bean should happen. Any idea, or maybe an example how I can work around it by using orion-ejb-jar.xml ? Thank you in advance, Axel.
Re: ejb 2.0 relations in orion 1.4.3 broken ?
EEK! Axel, I have not yet tried to verify this and am not dure how to work around it, but if you are sure please Bugzilla it as soon as possible. I was just reviewing the bug list and saw that Magnus seems to be making excellent progress in cleaning up the EJB 2.0 persistence manager related bugs. Maybe if you get this one logged quickly, he can throw a fix in for it. Jim --On Wednesday, November 08, 2000 6:28 PM +0100 Axel Grossmann [EMAIL PROTECTED] wrote: The current ATM example uses EJB 2.0 definitions of ont-to-many relationships (account_owner - account) . When I deployed it on orion 1.4.3 it workes quite well until I added some accounts. After shutting down orion and re-login all accounts are lost. A quick look into the hsql file (.script) revealed that there was no INSERT statement for the ACCOUNTOWNER_ACCOUNTS table at all, where the set-mapping between the AccountOwner and Account bean should happen. Any idea, or maybe an example how I can work around it by using orion-ejb-jar.xml ? Thank you in advance, Axel.
RE: ejb 2.0 relations in orion 1.4.3 broken ?
Title: RE: ejb 2.0 relations in orion 1.4.3 broken ? Hi Alex, well, the ATM needs to be updated a bit. Its descriptor is stuck somewhere between 1.1 and 2.0 during that it has been updated as the 2.0 implementation progressed. Hopefully, I will get time to do this this weekend. WR -Original Message- From: Axel Grossmann [mailto:[EMAIL PROTECTED]] Sent: den 8 november 2000 18:28 To: Orion-Interest Subject: ejb 2.0 relations in orion 1.4.3 broken ? The current ATM example uses EJB 2.0 definitions of ont-to-many relationships (account_owner - account) . When I deployed it on orion 1.4.3 it workes quite well until I added some accounts. After shutting down orion and re-login all accounts are lost. A quick look into the hsql file (.script) revealed that there was no INSERT statement for the ACCOUNTOWNER_ACCOUNTS table at all, where the set-mapping between the AccountOwner and Account bean should happen. Any idea, or maybe an example how I can work around it by using orion-ejb-jar.xml ? Thank you in advance, Axel.