Examples of AssociationInfo


Examples of org.hibernate.cfg.reveng.AssociationInfo

        return makeEntityProperty(propertyName, mutable, table, fk, value, false);
     }

    private Property makeCollectionProperty(String propertyName, boolean mutable,
      Table table, ForeignKey fk, Collection value, boolean inverseProperty) {
      AssociationInfo fkei = inverseProperty?revengStrategy.foreignKeyToInverseAssociationInfo(fk):revengStrategy.foreignKeyToAssociationInfo(fk);

        String fetchMode = null;
        String cascade = null;
        boolean update = mutable;
        boolean insert = mutable;

        if(fkei != null){
          cascade = fkei.getCascade();
          if(cascade==null) cascade = "all"; //To ensure collections cascade to be compatible with Seam-gen and previous behavior.
          if(fkei.getUpdate()!=null) {
            update = fkei.getUpdate().booleanValue();
          }
          if(fkei.getInsert()!=null) {
            insert = fkei.getInsert().booleanValue();
          }

          fetchMode = fkei.getFetch();


        }

        if(FetchMode.JOIN.toString().equalsIgnoreCase(fetchMode)) {
View Full Code Here

Examples of org.hibernate.cfg.reveng.AssociationInfo

  }

  private Property makeEntityProperty(String propertyName, boolean mutable,
      Table table, ForeignKey fk, ToOne value, boolean inverseProperty) {
    AssociationInfo fkei = inverseProperty?revengStrategy.foreignKeyToInverseAssociationInfo(fk):revengStrategy.foreignKeyToAssociationInfo(fk);

        String fetchMode = null;
        String cascade = null;
        boolean update = mutable;
        boolean insert = mutable;

        if(fkei != null){
          cascade = fkei.getCascade();
          if(fkei.getUpdate()!=null) {
            update = fkei.getUpdate().booleanValue();
          }
          if(fkei.getInsert()!=null) {
            insert = fkei.getInsert().booleanValue();
          }

          fetchMode = fkei.getFetch();


        }

        if(FetchMode.JOIN.toString().equalsIgnoreCase(fetchMode)) {
View Full Code Here

Examples of org.hibernate.cfg.reveng.AssociationInfo

        return makeEntityProperty(propertyName, mutable, table, fk, value, false);
     }

    private Property makeCollectionProperty(String propertyName, boolean mutable,
      Table table, ForeignKey fk, Collection value, boolean inverseProperty) {
      AssociationInfo fkei = inverseProperty?revengStrategy.foreignKeyToInverseAssociationInfo(fk):revengStrategy.foreignKeyToAssociationInfo(fk);

        String fetchMode = null;
        String cascade = null;
        boolean update = mutable;
        boolean insert = mutable;

        if(fkei != null){
          cascade = fkei.getCascade();
          if(cascade==null) cascade = "all"; //To ensure collections cascade to be compatible with Seam-gen and previous behavior.
          if(fkei.getUpdate()!=null) {
            update = fkei.getUpdate().booleanValue();
          }
          if(fkei.getInsert()!=null) {
            insert = fkei.getInsert().booleanValue();
          }

          fetchMode = fkei.getFetch();


        }

        if(FetchMode.JOIN.toString().equalsIgnoreCase(fetchMode)) {
View Full Code Here

Examples of org.hibernate.cfg.reveng.AssociationInfo

  }

  private Property makeEntityProperty(String propertyName, boolean mutable,
      Table table, ForeignKey fk, ToOne value, boolean inverseProperty) {
    AssociationInfo fkei = inverseProperty?revengStrategy.foreignKeyToInverseAssociationInfo(fk):revengStrategy.foreignKeyToAssociationInfo(fk);

        String fetchMode = null;
        String cascade = null;
        boolean update = mutable;
        boolean insert = mutable;

        if(fkei != null){
          cascade = fkei.getCascade();
          if(fkei.getUpdate()!=null) {
            update = fkei.getUpdate().booleanValue();
          }
          if(fkei.getInsert()!=null) {
            insert = fkei.getInsert().booleanValue();
          }

          fetchMode = fkei.getFetch();


        }

        if(FetchMode.JOIN.toString().equalsIgnoreCase(fetchMode)) {
View Full Code Here

Examples of org.hibernate.cfg.reveng.AssociationInfo

        return makeEntityProperty(propertyName, mutable, table, fk, value, false);
     }

    private Property makeCollectionProperty(String propertyName, boolean mutable,
      Table table, ForeignKey fk, Collection value, boolean inverseProperty) {
      AssociationInfo fkei = inverseProperty?revengStrategy.foreignKeyToInverseAssociationInfo(fk):revengStrategy.foreignKeyToAssociationInfo(fk);

        String fetchMode = null;
        String cascade = null;
        boolean update = mutable;
        boolean insert = mutable;

        if(fkei != null){
          cascade = fkei.getCascade();
          if(cascade==null) cascade = "all"; //To ensure collections cascade to be compatible with Seam-gen and previous behavior.
          if(fkei.getUpdate()!=null) {
            update = fkei.getUpdate().booleanValue();
          }
          if(fkei.getInsert()!=null) {
            insert = fkei.getInsert().booleanValue();
          }

          fetchMode = fkei.getFetch();


        }

        if(FetchMode.JOIN.toString().equalsIgnoreCase(fetchMode)) {
View Full Code Here

Examples of org.hibernate.cfg.reveng.AssociationInfo

  }

  private Property makeEntityProperty(String propertyName, boolean mutable,
      Table table, ForeignKey fk, ToOne value, boolean inverseProperty) {
    AssociationInfo fkei = inverseProperty?revengStrategy.foreignKeyToInverseAssociationInfo(fk):revengStrategy.foreignKeyToAssociationInfo(fk);

        String fetchMode = null;
        String cascade = null;
        boolean update = mutable;
        boolean insert = mutable;

        if(fkei != null){
          cascade = fkei.getCascade();
          if(fkei.getUpdate()!=null) {
            update = fkei.getUpdate().booleanValue();
          }
          if(fkei.getInsert()!=null) {
            insert = fkei.getInsert().booleanValue();
          }

          fetchMode = fkei.getFetch();


        }

        if(FetchMode.JOIN.toString().equalsIgnoreCase(fetchMode)) {
View Full Code Here

Examples of org.hibernate.cfg.reveng.AssociationInfo

        return makeEntityProperty(propertyName, mutable, table, fk, value, false);
     }

    private Property makeCollectionProperty(String propertyName, boolean mutable,
      Table table, ForeignKey fk, Collection value, boolean inverseProperty) {
      AssociationInfo fkei = inverseProperty?revengStrategy.foreignKeyToInverseAssociationInfo(fk):revengStrategy.foreignKeyToAssociationInfo(fk);

        String fetchMode = null;
        String cascade = null;
        boolean update = mutable;
        boolean insert = mutable;

        if(fkei != null){
          cascade = fkei.getCascade();
          if(cascade==null) cascade = "all"; //To ensure collections cascade to be compatible with Seam-gen and previous behavior.
          if(fkei.getUpdate()!=null) {
            update = fkei.getUpdate().booleanValue();
          }
          if(fkei.getInsert()!=null) {
            insert = fkei.getInsert().booleanValue();
          }

          fetchMode = fkei.getFetch();


        }

        if(FetchMode.JOIN.toString().equalsIgnoreCase(fetchMode)) {
View Full Code Here

Examples of org.hibernate.cfg.reveng.AssociationInfo

  }

  private Property makeEntityProperty(String propertyName, boolean mutable,
      Table table, ForeignKey fk, ToOne value, boolean inverseProperty) {
    AssociationInfo fkei = inverseProperty?revengStrategy.foreignKeyToInverseAssociationInfo(fk):revengStrategy.foreignKeyToAssociationInfo(fk);

        String fetchMode = null;
        String cascade = null;
        boolean update = mutable;
        boolean insert = mutable;

        if(fkei != null){
          cascade = fkei.getCascade();
          if(fkei.getUpdate()!=null) {
            update = fkei.getUpdate().booleanValue();
          }
          if(fkei.getInsert()!=null) {
            insert = fkei.getInsert().booleanValue();
          }

          fetchMode = fkei.getFetch();


        }

        if(FetchMode.JOIN.toString().equalsIgnoreCase(fetchMode)) {
View Full Code Here

Examples of org.qi4j.runtime.association.AssociationInfo

        }

        this.associations = new LinkedHashMap<>();
        for( AssociationDescriptor associationDescriptor : valueModel.state().associations() )
        {
            AssociationInfo builderInfo = ( (AssociationModel) associationDescriptor ).getBuilderInfo();
            EntityReference value = stateResolver.getAssociationState( associationDescriptor );
            AssociationInstance<Object> associationInstance1 = new AssociationInstance<>(
                builderInfo,
                currentModule.getEntityFunction(),
                new ReferenceProperty( value ) );
            associations.put( associationDescriptor.accessor(), associationInstance1 );
        }

        this.manyAssociations = new LinkedHashMap<>();
        for( AssociationDescriptor associationDescriptor : valueModel.state().manyAssociations() )
        {
            AssociationInfo builderInfo = ( (ManyAssociationModel) associationDescriptor ).getBuilderInfo();
            List<EntityReference> value = stateResolver.getManyAssociationState( associationDescriptor );
            ManyAssociationValueState manyAssociationState = new ManyAssociationValueState( value );
            ManyAssociationInstance<Object> associationInstance = new ManyAssociationInstance<>(
                builderInfo,
                currentModule.getEntityFunction(),
                manyAssociationState );
            manyAssociations.put( associationDescriptor.accessor(), associationInstance );
        }

        this.namedAssociations = new LinkedHashMap<>();
        for( AssociationDescriptor associationDescriptor : valueModel.state().namedAssociations() )
        {
            AssociationInfo builderInfo = ( (NamedAssociationModel) associationDescriptor ).getBuilderInfo();
            Map<String, EntityReference> value = stateResolver.getNamedAssociationState( associationDescriptor );
            NamedAssociationValueState namedAssociationState = new NamedAssociationValueState( value );
            NamedAssociationInstance<Object> associationInstance = new NamedAssociationInstance<>(
                builderInfo,
                currentModule.getEntityFunction(),
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.