Examples of CascadeType


Examples of javax.persistence.CascadeType

        for (Map.Entry<Property, Collection<CascadeType>> entry : containedProperties.entrySet()) {
          Property p = entry.getKey();
            // Static properties are by design not written
            if (!p.hasModifier(Modifier.STATIC) && !Annotations.TRANSIENT.is(p)) {
                // Per default, no operation is cascaded
                CascadeType used = null;
                // However, if property supports that cascade type, we cascade operation
                if (entry.getValue().contains(cascade)) {
                    used = cascade;
                }
                if(used!=null) {
View Full Code Here

Examples of javax.persistence.CascadeType

        for (Map.Entry<Property, Collection<CascadeType>> entry : containedProperties.entrySet()) {
            Property p = entry.getKey();
            // Static properties are by design not written
            if (!p.hasModifier(Modifier.STATIC) && !Annotations.TRANSIENT.is(p)) {
                // Per default, no operation is cascaded
                CascadeType used = null;
                // However, if property supports that cascade type, we cascade operation
                if (entry.getValue().contains(cascade)) {
                    used = cascade;
                }
                // We only perform operations on cascaded fields
View Full Code Here

Examples of org.apache.openejb.jee.jpa.CascadeType

        return true;
    }

    private void setCascade(EjbRelationshipRole role, RelationField field) {
        if (role.getCascadeDelete()) {
            CascadeType cascadeType = new CascadeType();
            cascadeType.setCascadeAll(true);
            field.setCascade(cascadeType);
        }
    }
View Full Code Here

Examples of org.apache.openejb.jee.jpa.CascadeType

        return true;
    }

    private void setCascade(EjbRelationshipRole role, RelationField field) {
        if (role.getCascadeDelete()) {
            CascadeType cascadeType = new CascadeType();
            cascadeType.setCascadeAll(true);
            field.setCascade(cascadeType);
        }
    }
View Full Code Here

Examples of org.apache.openejb.jee.jpa.CascadeType

        return true;
    }

    private void setCascade(final EjbRelationshipRole role, final RelationField field) {
        if (role.getCascadeDelete()) {
            final CascadeType cascadeType = new CascadeType();
            cascadeType.setCascadeAll(true);
            field.setCascade(cascadeType);
        }
    }
View Full Code Here

Examples of org.apache.openejb.jee.jpa.CascadeType

        return true;
    }

    private void setCascade(final EjbRelationshipRole role, final RelationField field) {
        if (role.getCascadeDelete()) {
            final CascadeType cascadeType = new CascadeType();
            cascadeType.setCascadeAll(true);
            field.setCascade(cascadeType);
        }
    }
View Full Code Here

Examples of org.hibernate.metamodel.binding.CascadeType

  protected Set<CascadeType> determineCascadeTypes(String cascade) {
    String commaSeparatedCascades = MappingHelper.getStringValue( cascade, getBindingContext().getMappingDefaults().getCascadeStyle() );
    Set<String> cascades = MappingHelper.getStringValueTokens( commaSeparatedCascades, "," );
    Set<CascadeType> cascadeTypes = new HashSet<CascadeType>( cascades.size() );
    for ( String s : cascades ) {
      CascadeType cascadeType = CascadeType.getCascadeType( s );
      if ( cascadeType == null ) {
        throw new MappingException( "Invalid cascading option " + s );
      }
      cascadeTypes.add( cascadeType );
    }
View Full Code Here

Examples of org.hibernate.metamodel.binding.CascadeType

  protected Set<CascadeType> determineCascadeTypes(String cascade) {
    String commaSeparatedCascades = MappingHelper.getStringValue( cascade, getBindingContext().getMappingDefaults().getCascadeStyle() );
    Set<String> cascades = MappingHelper.getStringValueTokens( commaSeparatedCascades, "," );
    Set<CascadeType> cascadeTypes = new HashSet<CascadeType>( cascades.size() );
    for ( String s : cascades ) {
      CascadeType cascadeType = CascadeType.getCascadeType( s );
      if ( cascadeType == null ) {
        throw new MappingException( "Invalid cascading option " + s );
      }
      cascadeTypes.add( cascadeType );
    }
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.