Discussion:
[Middlegen-user] many2many question (generate=false)
Timothy Peter Cockle
2003-11-14 13:37:08 UTC
Permalink
Hi,

Thanks for all the help so far. Right now I am using both MySQL with the
InnoDB and postgreSQL.

I have a quick question though.

Am I correct in assuming that the many2may ant tag use generate=false
eg: <jointable name="person_relationship" generate="false"/>
beacuse you don't want a personRelationship bean. Maintain the M2M
relationship thought he enity beans linked to tablea and tableb.

When I try to delopy using the postgreSQL I get the error:
[ServiceController] Problem starting service
jboss.j2ee:jndiName=Alpha_serendipity.RelationshipTypeLocalHome,service=EJB
org.jboss.deployment.DeploymentException: Entity: PersonRelationship not
found for: ***@ac576f

more ejb-jar.xml | grep -5 PersonRelationship

<ejb-relationship-role >

<ejb-relationship-role-name>person_relationship-cmp20-has-person-cmp20</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source >
<ejb-name>PersonRelationship</ejb-name>
</relationship-role-source>
</ejb-relationship-role>

</ejb-relation>
<ejb-relation >
--

<ejb-relationship-role >

<ejb-relationship-role-name>person_relationship-cmp20-has-relationship_type-cmp20</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source >
<ejb-name>PersonRelationship</ejb-name>
</relationship-role-source>
</ejb-relationship-role>

</ejb-relation>
<ejb-relation >

I did try to deploy without the generate=false tag but this came up with
a diffrent error:
Depends On Me: org.jboss.deployment.DeploymentException: CMP field for
key not found: field name=personId, ObjectName:
jboss.j2ee:jndiName=Alpha_serendipity.RelationshipTypeLocalHome,service=EJB
state: FAILED
This error was repeated all entity bean even though in only 3 beans
should have any knowledge to the person entity bean.

Thanks for any help.

Tim
j***@users.sourceforge.net
2003-11-14 13:55:19 UTC
Permalink
May be this will help
http://sourceforge.net/tracker/index.php?func=detail&aid=623291&group_id=36044&atid=415990

Best Regards
Jean-Claude
Post by Timothy Peter Cockle
Hi,
Thanks for all the help so far. Right now I am using both MySQL with the
InnoDB and postgreSQL.
I have a quick question though.
Am I correct in assuming that the many2may ant tag use generate=false
eg: <jointable name="person_relationship" generate="false"/>
beacuse you don't want a personRelationship bean. Maintain the M2M
relationship thought he enity beans linked to tablea and tableb.
[ServiceController] Problem starting service
jboss.j2ee:jndiName=Alpha_serendipity.RelationshipTypeLocalHome,service=EJB
org.jboss.deployment.DeploymentException: Entity: PersonRelationship not
more ejb-jar.xml | grep -5 PersonRelationship
<ejb-relationship-role >
<ejb-relationship-role-name>person_relationship-cmp20-has-person-cmp20</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source >
<ejb-name>PersonRelationship</ejb-name>
</relationship-role-source>
</ejb-relationship-role>
</ejb-relation>
<ejb-relation >
--
<ejb-relationship-role >
<ejb-relationship-role-name>person_relationship-cmp20-has-relationship_type-cmp20</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source >
<ejb-name>PersonRelationship</ejb-name>
</relationship-role-source>
</ejb-relationship-role>
</ejb-relation>
<ejb-relation >
I did try to deploy without the generate=false tag but this came up with
Depends On Me: org.jboss.deployment.DeploymentException: CMP field for
jboss.j2ee:jndiName=Alpha_serendipity.RelationshipTypeLocalHome,service=EJB
state: FAILED
This error was repeated all entity bean even though in only 3 beans
should have any knowledge to the person entity bean.
Thanks for any help.
Tim
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Timothy Peter Cockle
2003-11-17 11:40:16 UTC
Permalink
Well I made the changes but that didn't work. So I am going to give up
and use a diffrent design for now.

many-2-many will have to wait for another day!

Thanks for the help anyway,

Tim
Post by j***@users.sourceforge.net
May be this will help
http://sourceforge.net/tracker/index.php?func=detail&aid=623291&group_id=36044&atid=415990
Best Regards
Jean-Claude
Post by Timothy Peter Cockle
Hi,
Thanks for all the help so far. Right now I am using both MySQL with the
InnoDB and postgreSQL.
I have a quick question though.
Am I correct in assuming that the many2may ant tag use generate=false
eg: <jointable name="person_relationship" generate="false"/>
beacuse you don't want a personRelationship bean. Maintain the M2M
relationship thought he enity beans linked to tablea and tableb.
[ServiceController] Problem starting service
jboss.j2ee:jndiName=Alpha_serendipity.RelationshipTypeLocalHome,service=EJB
org.jboss.deployment.DeploymentException: Entity: PersonRelationship not
more ejb-jar.xml | grep -5 PersonRelationship
<ejb-relationship-role >
<ejb-relationship-role-name>person_relationship-cmp20-has-person-cmp20</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source >
<ejb-name>PersonRelationship</ejb-name>
</relationship-role-source>
</ejb-relationship-role>
</ejb-relation>
<ejb-relation >
--
<ejb-relationship-role >
<ejb-relationship-role-name>person_relationship-cmp20-has-relationship_type-cmp20</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source >
<ejb-name>PersonRelationship</ejb-name>
</relationship-role-source>
</ejb-relationship-role>
</ejb-relation>
<ejb-relation >
I did try to deploy without the generate=false tag but this came up with
Depends On Me: org.jboss.deployment.DeploymentException: CMP field for
jboss.j2ee:jndiName=Alpha_serendipity.RelationshipTypeLocalHome,service=EJB
state: FAILED
This error was repeated all entity bean even though in only 3 beans
should have any knowledge to the person entity bean.
Thanks for any help.
Tim
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Loading...