Examples of UnionSubclass


Examples of org.hibernate.mapping.UnionSubclass

    assertThat( resolver.getEntityPersisterClass( subclass ) ).isEqualTo( SingleTableOgmEntityPersister.class );
  }

  @Test
  public void testTablePerClassPersistentSubclassStrategy() throws Exception {
    Subclass subclass = new UnionSubclass( new RootClass() );
    assertThat( resolver.getEntityPersisterClass( subclass ) ).isEqualTo( UnionSubclassOgmEntityPersister.class );
  }
View Full Code Here

Examples of org.hibernate.mapping.UnionSubclass

    return prop;
  }

  private static void handleUnionSubclass(PersistentClass model, Mappings mappings,
      Element subnode, java.util.Map inheritedMetas) throws MappingException {
    UnionSubclass subclass = new UnionSubclass( model );
    bindUnionSubclass( subnode, subclass, mappings, inheritedMetas );
    model.addSubclass( subclass );
    mappings.addClass( subclass );
  }
View Full Code Here

Examples of org.hibernate.mapping.UnionSubclass

    }
    else if ( InheritanceType.JOINED.equals( inheritanceState.getType() ) ) {
      persistentClass = new JoinedSubclass( superEntity );
    }
    else if ( InheritanceType.TABLE_PER_CLASS.equals( inheritanceState.getType() ) ) {
      persistentClass = new UnionSubclass( superEntity );
    }
    else {
      throw new AssertionFailure( "Unknown inheritance type: " + inheritanceState.getType() );
    }
    return persistentClass;
View Full Code Here

Examples of org.hibernate.mapping.UnionSubclass

    return prop;
  }

  private static void handleUnionSubclass(PersistentClass model, Mappings mappings,
      Element subnode, java.util.Map inheritedMetas) throws MappingException {
    UnionSubclass subclass = new UnionSubclass( model );
    bindUnionSubclass( subnode, subclass, mappings, inheritedMetas );
    model.addSubclass( subclass );
    mappings.addClass( subclass );
  }
View Full Code Here

Examples of org.hibernate.mapping.UnionSubclass

    }
    else if ( InheritanceType.JOINED.equals( inheritanceState.type ) ) {
      persistentClass = new JoinedSubclass( superEntity );
    }
    else if ( InheritanceType.TABLE_PER_CLASS.equals( inheritanceState.type ) ) {
      persistentClass = new UnionSubclass( superEntity );
    }
    else {
      throw new AssertionFailure( "Unknown inheritance type: " + inheritanceState.type );
    }
    Proxy proxyAnn = annotatedClass.getAnnotation( Proxy.class );
View Full Code Here

Examples of org.hibernate.mapping.UnionSubclass

    return prop;
  }

  private static void handleUnionSubclass(PersistentClass model, Mappings mappings,
      Element subnode, java.util.Map inheritedMetas) throws MappingException {
    UnionSubclass subclass = new UnionSubclass( model );
    bindUnionSubclass( subnode, subclass, mappings, inheritedMetas );
    model.addSubclass( subclass );
    mappings.addClass( subclass );
  }
View Full Code Here

Examples of org.hibernate.mapping.UnionSubclass

    return prop;
  }

  private static void handleUnionSubclass(PersistentClass model, Mappings mappings,
      Element subnode, java.util.Map inheritedMetas) throws MappingException {
    UnionSubclass subclass = new UnionSubclass( model );
    bindUnionSubclass( subnode, subclass, mappings, inheritedMetas );
    model.addSubclass( subclass );
    mappings.addClass( subclass );
  }
View Full Code Here

Examples of org.hibernate.mapping.UnionSubclass

    }
    else if ( InheritanceType.JOINED.equals( inheritanceState.getType() ) ) {
      persistentClass = new JoinedSubclass( superEntity );
    }
    else if ( InheritanceType.TABLE_PER_CLASS.equals( inheritanceState.getType() ) ) {
      persistentClass = new UnionSubclass( superEntity );
    }
    else {
      throw new AssertionFailure( "Unknown inheritance type: " + inheritanceState.getType() );
    }
    return persistentClass;
View Full Code Here

Examples of org.hibernate.mapping.UnionSubclass

    }
    else if ( InheritanceType.JOINED.equals( inheritanceState.getType() ) ) {
      persistentClass = new JoinedSubclass( superEntity );
    }
    else if ( InheritanceType.TABLE_PER_CLASS.equals( inheritanceState.getType() ) ) {
      persistentClass = new UnionSubclass( superEntity );
    }
    else {
      throw new AssertionFailure( "Unknown inheritance type: " + inheritanceState.getType() );
    }
    return persistentClass;
View Full Code Here

Examples of org.hibernate.mapping.UnionSubclass

    return prop;
  }

  private static void handleUnionSubclass(PersistentClass model, Mappings mappings,
      Element subnode, java.util.Map inheritedMetas) throws MappingException {
    UnionSubclass subclass = new UnionSubclass( model );
    bindUnionSubclass( subnode, subclass, mappings, inheritedMetas );
    model.addSubclass( subclass );
    mappings.addClass( subclass );
  }
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.