Package org.jboss.metadata

Examples of org.jboss.metadata.RelationshipRoleMetaData


      return role.getCMRFieldName();
   }

   private static String generateNonNavigableCMRName(RelationshipRoleMetaData role)
   {
      RelationshipRoleMetaData relatedRole = role.getRelatedRoleMetaData();
      return relatedRole.getEntityName() + "_" + relatedRole.getCMRFieldName();
   }
View Full Code Here


   *           file
   */
  public JDBCRelationMetaData(JDBCApplicationMetaData jdbcApplication, RelationMetaData relationMetaData)
      throws DeploymentException
  {
      RelationshipRoleMetaData leftRole = relationMetaData.getLeftRelationshipRole();
    RelationshipRoleMetaData rightRole = relationMetaData.getRightRelationshipRole();

    // set the default mapping style
    if (leftRole.isMultiplicityMany() && rightRole.isMultiplicityMany())
    {
      mappingStyle = TABLE;
    }
    else
    {
View Full Code Here

/* 205 */     return role.getCMRFieldName();
/*     */   }
/*     */
/*     */   private static String generateNonNavigableCMRName(RelationshipRoleMetaData role)
/*     */   {
/* 210 */     RelationshipRoleMetaData relatedRole = role.getRelatedRoleMetaData();
/* 211 */     return relatedRole.getEntityName() + "_" + relatedRole.getCMRFieldName();
/*     */   }
View Full Code Here

/*     */   private final int readTimeOut;
/*     */
/*     */   public JDBCRelationMetaData(JDBCApplicationMetaData jdbcApplication, RelationMetaData relationMetaData)
/*     */     throws DeploymentException
/*     */   {
/* 129 */     RelationshipRoleMetaData leftRole = relationMetaData.getLeftRelationshipRole();
/* 130 */     RelationshipRoleMetaData rightRole = relationMetaData.getRightRelationshipRole();
/*     */
/* 133 */     if ((leftRole.isMultiplicityMany()) && (rightRole.isMultiplicityMany()))
/*     */     {
/* 135 */       this.mappingStyle = 1;
/*     */     }
/*     */     else
/*     */     {
View Full Code Here

TOP

Related Classes of org.jboss.metadata.RelationshipRoleMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.