Package org.hibernate.metamodel.binding

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


  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

Related Classes of org.hibernate.metamodel.binding.CascadeType

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.