Steve Knight
2002-02-07 14:27:01 UTC
Aslak, maybe you can help me out here.
I have been trying out the latest CVS of middlegen to generate my Entity
beans with a simple 1-n relationship between Parent and Child tables.
Here are some of the problems I encountered:
i) When I ran my middlegen-created source through XDoclet(CVS from last
night), it didn't create the proper <ejb-name>Child</ejb-name> under the
<relationship-role-source> in the ejb-jar.xml. It simply created a blank
<ejb-name></ejb-name>. Here is the code that Middlegen created for the
relationship section:
/**
* @ejb:interface-method view-type="local"
* @ejb:relation
* name="parent-child"
* role-name="one-parent-has-many-child"
* target-ejb="Child"
* target-role-name="children-ownedby-parent"
*
* @weblogic:relation
* foreign-key-column="parentid"
* key-column="parentid"
*
*/
public abstract java.util.Collection getChilds();
Is this correct? Should the proper code be generated from Xdoclet...or is
this an XDoclet problem?
2)The EJB-QL generated by middlegen is not compatible with JBoss 3.0a. It
seems to want the full query statement. I will try again with the latest
CVS of JBoss...maybe it works now.
I had a few other issues with XDoclet that were JBoss related, but nothing
insurmountable.
After I tweaked and fixed-up the code it finally deployed on JBoss, but I
was hoping that I wouldn't have to do this for every set of beans I create.
I know you are probably busy working on integrating middlegen with the
XDoclet gui project...how is that coming along? When can we expect a
functioning version to be available?
Thanks for the help, and keep up the excellent work!
Steve Knight
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
I have been trying out the latest CVS of middlegen to generate my Entity
beans with a simple 1-n relationship between Parent and Child tables.
Here are some of the problems I encountered:
i) When I ran my middlegen-created source through XDoclet(CVS from last
night), it didn't create the proper <ejb-name>Child</ejb-name> under the
<relationship-role-source> in the ejb-jar.xml. It simply created a blank
<ejb-name></ejb-name>. Here is the code that Middlegen created for the
relationship section:
/**
* @ejb:interface-method view-type="local"
* @ejb:relation
* name="parent-child"
* role-name="one-parent-has-many-child"
* target-ejb="Child"
* target-role-name="children-ownedby-parent"
*
* @weblogic:relation
* foreign-key-column="parentid"
* key-column="parentid"
*
*/
public abstract java.util.Collection getChilds();
Is this correct? Should the proper code be generated from Xdoclet...or is
this an XDoclet problem?
2)The EJB-QL generated by middlegen is not compatible with JBoss 3.0a. It
seems to want the full query statement. I will try again with the latest
CVS of JBoss...maybe it works now.
I had a few other issues with XDoclet that were JBoss related, but nothing
insurmountable.
After I tweaked and fixed-up the code it finally deployed on JBoss, but I
was hoping that I wouldn't have to do this for every set of beans I create.
I know you are probably busy working on integrating middlegen with the
XDoclet gui project...how is that coming along? When can we expect a
functioning version to be available?
Thanks for the help, and keep up the excellent work!
Steve Knight
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com