Hi Hani,
Problem is I need to specify the column name (1-N) and also the table name (n-m)
in the relationships in order for this data to be included in the
orion-ejb-jar.xml file. Browsing the orion template, I couldn't find any
reference to the standard tags(ejb:persistence column-name and table-name) being
used but to @orion:persistence(persistence-name and table-name) tags. I might as
well be mistaken as I've "extracted" this info from the template but I'm not an
xdoclet expert so there might be other things I don't know of. Experimentation
also showed me that the standard tags were not working.
For example
Imagine I have a TgidReference entity that has an N-M relationship with the
TgidDirectory entity. The joint table is called TGID_PROFILE and the FKs are,
respectively, PRF_REF_CODE and PRF_DIR_CODE.
That's what I have at the TgidReference entity:
  /**
   * @ejb:interface-method view-ejb-class-name="local"
   *
   * @ejb:relation
   *    name="tgid_directory-tgid_reference"
   *    role-name="tgid_reference-has-tgid_directory"
   *    multiple="yes"
   *
   * @ejb:persistence
   *    column-name="PRF_REF_CODE" 
   *    table-name="TGID_PROFILE"
   *
   * @orion:persistence
   *    persistence-name="PRF_REF_CODE"
   *    table-name="TGID_PROFILE"
   *    type="com.edge.webguide.interfaces.TgidDirectoryLocal"
   *    ejb-class-name="com.edge.webguide.ejb.TgidDirectoryBean"
   */
  public abstract java.util.Collection getTgidDirectories();

and the opposite at the TgidDirectory bean. Do you mean I don't need all those
@orion:persistence tags? How does Orion know then which table to use and which
column is the FK? That information is not in the standard ejb-jar.xml file and
if I don't use the orion:persistence tag, it is also not included in the
orion-ejb-jar.xml one. I think I've got it pretty much nailed down, but as I'm
no Orion EJB expert, I can't tell for sure that the generated orion-ejb-jar.xml
file is correct. The orion documentation is not too clear hence my question.
Are you using a standard naming so Orion can guess your table names and columns?
I'm I missing something by trusting the template source too much ;)?
Thank you very much for you message,
D.


> What specific problems do you have? You don't need any orion-specific 
> tags if you're using EJB OR, the standard relation xdoclet docs are all 
> you need. I'm using xdoclet/many relations/Orion 2.0.2 without any 
> problems.
> 
> On Friday, June 27, 2003, at 11:01 AM, Daniel Lopez wrote:
> 
> > Hi there,
> > I have a EJB2.0 CMP application that runs fine under ResinEE, using 
> > XDoclet to
> > generate the resin.ejb descriptor. Now I'm trying to get it to work 
> > under Orion
> > 2.0.2 and I'm having difficulties setting up the relationships between 
> > my Beans,
> > as the documentation is scarce. I've been browsing the web, reading 
> > all the
> > documentation, mail and forum messages that I've been able to find but 
> > I've
> > found no clear answer. I've also looked at the template source to find 
> > out the
> > attributes that are being used, etc, but as the Orion-specific ejb 
> > descriptor is
> > also not very well documented on its own, it's becoming a nightmare :).
> > Is there any place where I can find more information about how to 
> > configure the
> > different kind of relationships appropriately for Orion? Any samples 
> > I'm not
> > aware of? Is anybody actually using XDoclet to develop Orion 
> > applications?
> > I'm using XDoclet1.2b3(at least that's what the download link said, 
> > even though
> > the jar files all read whatever12b4.jar)
> > Thank you very much,
> > D.
> > PD: Final goal is to have an EJB2.0 CMP application that is able to run
> > "untouched" under various containers, as a proof of concept. And if 
> > there's
> > interest enough, I've also been given permission to release it as open 
> > source
> > so, hopefully, it could also help others when using XDoclet and EJB.

--
This message was sent using Sake Mail, a web-based email tool from
Endymion Corporation.  http://www.endymion.com/products/sake
What specific problems do you have? You don't need any orion-specific tags if you're using EJB OR, the standard relation xdoclet docs are all you need. I'm using xdoclet/many relations/Orion 2.0.2 without any problems.

On Friday, June 27, 2003, at 11:01 AM, Daniel Lopez wrote:

Hi there,
I have a EJB2.0 CMP application that runs fine under ResinEE, using XDoclet to
generate the resin.ejb descriptor. Now I'm trying to get it to work under Orion
2.0.2 and I'm having difficulties setting up the relationships between my Beans,
as the documentation is scarce. I've been browsing the web, reading all the
documentation, mail and forum messages that I've been able to find but I've
found no clear answer. I've also looked at the template source to find out the
attributes that are being used, etc, but as the Orion-specific ejb descriptor is
also not very well documented on its own, it's becoming a nightmare :).
Is there any place where I can find more information about how to configure the
different kind of relationships appropriately for Orion? Any samples I'm not
aware of? Is anybody actually using XDoclet to develop Orion applications?
I'm using XDoclet1.2b3(at least that's what the download link said, even though
the jar files all read whatever12b4.jar)
Thank you very much,
D.
PD: Final goal is to have an EJB2.0 CMP application that is able to run
"untouched" under various containers, as a proof of concept. And if there's
interest enough, I've also been given permission to release it as open source
so, hopefully, it could also help others when using XDoclet and EJB.


--
This message was sent using Sake Mail, a web-based email tool from
Endymion Corporation. http://www.endymion.com/products/sake<Original message>



------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to