Timothy Peter Cockle
2003-11-14 13:37:08 UTC
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
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