Examples of mappedBy()


Examples of javax.persistence.OneToOne.mappedBy()

      }
    }
    else {
      OneToOne oneToOneAnn = property.getAnnotation( OneToOne.class );
      String mappedBy = oneToOneAnn != null ?
          oneToOneAnn.mappedBy() :
          null;
      joinColumns = Ejb3JoinColumn.buildJoinColumns(
          null,
          mappedBy, entityBinder.getSecondaryTables(),
          propertyHolder, inferredData.getPropertyName(), mappings
View Full Code Here

Examples of javax.persistence.OneToOne.mappedBy()

            getFetchMode( ann.fetch() ),
            ignoreNotFound, onDeleteCascade,
            ToOneBinder.getTargetEntity( inferredData, mappings ),
            propertyHolder,
            inferredData,
            ann.mappedBy(),
            trueOneToOne,
            isIdentifierMapper,
            inSecondPass,
            propertyBinder,
            mappings
View Full Code Here

Examples of javax.persistence.OneToOne.mappedBy()

          ann.optional(),
          getFetchMode( ann.fetch() ),
          ignoreNotFound, onDeleteCascade,
          mappings.getReflectionManager().toXClass( ann.targetEntity() ),
          propertyHolder,
          inferredData, ann.mappedBy(), trueOneToOne, isIdentifierMapper, inSecondPass, mappings
      );
    }
    else if ( property.isAnnotationPresent( OneToMany.class )
        || property.isAnnotationPresent( ManyToMany.class )
        || property.isAnnotationPresent( CollectionOfElements.class ) ) {
View Full Code Here

Examples of javax.persistence.OneToOne.mappedBy()

        }
      }
      else {
        OneToOne oneToOneAnn = property.getAnnotation( OneToOne.class );
        String mappedBy = oneToOneAnn != null ?
            oneToOneAnn.mappedBy() :
            null;
        joinColumns = Ejb3JoinColumn.buildJoinColumns(
            (JoinColumn[]) null,
            mappedBy, entityBinder.getSecondaryTables(),
            propertyHolder, inferredData.getPropertyName(), mappings
View Full Code Here

Examples of org.drools.planner.api.domain.variable.DependentPlanningVariable.mappedBy()

                    + ") that refers to a masterPropertyName (" + masterPropertyName
                    + ") that does not exist on that class (" + planningEntityDescriptor.getPlanningEntityClass()
                    + ").");
        }
        masterPlanningVariableDescriptor.addDependentPlanningVariableDescriptor(this);
        String mappedByPropertyName = dependentPlanningVariableAnnotation.mappedBy();
        if (!mappedByPropertyName.equals("")) {
            Class<?> oppositeClass = variablePropertyDescriptor.getPropertyType();
            PlanningEntityDescriptor oppositePlanningEntityDescriptor
                    = planningEntityDescriptor.getSolutionDescriptor().getPlanningEntityDescriptor(oppositeClass);
            if (oppositePlanningEntityDescriptor == null) {
View Full Code Here

Examples of org.eclipse.persistence.oxm.annotations.XmlInverseReference.mappedBy()

            property.setInverseReferencePropertyName(container.value());
            property.setInverseReferencePropertyGetMethodName(container.getMethodName());
            property.setInverseReferencePropertySetMethodName(container.setMethodName());
        } else if (helper.isAnnotationPresent(javaHasAnnotations, XmlInverseReference.class)) {
            XmlInverseReference inverseReference = (XmlInverseReference) helper.getAnnotation(javaHasAnnotations, XmlInverseReference.class);
            property.setInverseReferencePropertyName(inverseReference.mappedBy());

            TypeInfo targetInfo = this.getTypeInfo().get(property.getActualType().getName());
            if (targetInfo != null && targetInfo.getXmlAccessType() == XmlAccessType.PROPERTY) {
                String propName = property.getPropertyName();
                propName = Character.toUpperCase(propName.charAt(0)) + propName.substring(1);
View Full Code Here

Examples of org.hibernate.annotations.JoinColumnsOrFormulas.mappedBy()

          ann.optional(),
          getFetchMode( ann.fetch() ),
          ignoreNotFound, onDeleteCascade,
          mappings.getReflectionManager().toXClass( ann.targetEntity() ),
          propertyHolder,
          inferredData, ann.mappedBy(), trueOneToOne, isIdentifierMapper, inSecondPass, mappings
      );
    }
    else if ( property.isAnnotationPresent( org.hibernate.annotations.Any.class ) ) {

      //check validity
View Full Code Here

Examples of org.hibernate.envers.AuditMappedBy.mappedBy()

        if (oneToMany != null && !"".equals(oneToMany.mappedBy())) {
            propertyData.setAuditMappedBy(oneToMany.mappedBy());
        }
        AuditMappedBy auditMappedBy = property.getAnnotation(AuditMappedBy.class);
        if (auditMappedBy != null) {
        propertyData.setAuditMappedBy(auditMappedBy.mappedBy());
            if (!"".equals(auditMappedBy.positionMappedBy())) {
                propertyData.setPositionMappedBy(auditMappedBy.positionMappedBy());
            }
        }
    }
View Full Code Here

Examples of org.hibernate.envers.AuditMappedBy.mappedBy()

    }

  private void setPropertyAuditMappedBy(XProperty property, PropertyAuditingData propertyData) {
        AuditMappedBy auditMappedBy = property.getAnnotation(AuditMappedBy.class);
        if (auditMappedBy != null) {
        propertyData.setAuditMappedBy(auditMappedBy.mappedBy());
            if (!"".equals(auditMappedBy.positionMappedBy())) {
                propertyData.setPositionMappedBy(auditMappedBy.positionMappedBy());
            }
        }
    }
View Full Code Here

Examples of siena.core.Owned.mappedBy()

      } catch (Exception e) {
        throw new SienaException(e);
      }
    }
    else if(related != null){
      String as = related.mappedBy();
      // if related.as not specified, tries to find the first field with this type
      if("".equals(as) || as == null){
        ClassInfo fieldInfo = ClassInfo.getClassInfo(cl);
        Field f = fieldInfo.getFirstFieldFromType(clazz);
        if(f == null){
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.