many2many question (generate=false)

Timothy Peter Cockle <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Organization AJ Business Solutions
Message-ID <[email protected]>
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: org.jboss.metadata.RelationshipRoleMetaData@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



-------------------------------------------------------
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.