Codota Logo
UnionSubclass.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.hibernate.mapping.UnionSubclass
constructor

Best Java code snippets using org.hibernate.mapping.UnionSubclass.<init> (Showing top 14 results out of 315)

  • Common ways to obtain UnionSubclass
private void myMethod () {
UnionSubclass u =
  • Codota IconPersistentClass superclass;new UnionSubclass(superclass)
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

private void bindUnionSubclassEntities(
    EntitySource entitySource,
    PersistentClass superEntityDescriptor) {
  for ( IdentifiableTypeSource subType : entitySource.getSubTypes() ) {
    final UnionSubclass subEntityDescriptor = new UnionSubclass( superEntityDescriptor, metadataBuildingContext );
    bindUnionSubclassEntity( (SubclassEntitySourceImpl) subType, subEntityDescriptor );
    superEntityDescriptor.addSubclass( subEntityDescriptor );
    entitySource.getLocalMetadataBuildingContext().getMetadataCollector().addEntityBinding( subEntityDescriptor );
  }
}
origin: hibernate/hibernate-orm

private static PersistentClass makePersistentClass(
    InheritanceState inheritanceState,
    PersistentClass superEntity,
    MetadataBuildingContext metadataBuildingContext) {
  //we now know what kind of persistent entity it is
  if ( !inheritanceState.hasParents() ) {
    return new RootClass( metadataBuildingContext );
  }
  else if ( InheritanceType.SINGLE_TABLE.equals( inheritanceState.getType() ) ) {
    return new SingleTableSubclass( superEntity, metadataBuildingContext );
  }
  else if ( InheritanceType.JOINED.equals( inheritanceState.getType() ) ) {
    return new JoinedSubclass( superEntity, metadataBuildingContext );
  }
  else if ( InheritanceType.TABLE_PER_CLASS.equals( inheritanceState.getType() ) ) {
    return new UnionSubclass( superEntity, metadataBuildingContext );
  }
  else {
    throw new AssertionFailure( "Unknown inheritance type: " + inheritanceState.getType() );
  }
}
origin: hibernate/hibernate-orm

@Test
public void testProperCallbacks() {
  PersistentClassVisitorValidator vv = new PersistentClassVisitorValidator();
  new RootClass( metadataBuildingContext ).accept( vv );
  new Subclass( new RootClass( metadataBuildingContext ), metadataBuildingContext ).accept( vv );
  new JoinedSubclass( new RootClass( metadataBuildingContext ), metadataBuildingContext ).accept( vv );
  new SingleTableSubclass( new RootClass( metadataBuildingContext ), metadataBuildingContext ).accept( vv );
  new UnionSubclass( new RootClass( metadataBuildingContext ), metadataBuildingContext ).accept( vv );
}
origin: org.hibernate/hibernate-annotations

private static PersistentClass makePersistentClass(InheritanceState inheritanceState, PersistentClass superEntity) {
  //we now know what kind of persistent entity it is
  PersistentClass persistentClass;
  //create persistent class
  if ( !inheritanceState.hasParents() ) {
    persistentClass = new RootClass();
  }
  else if ( InheritanceType.SINGLE_TABLE.equals( inheritanceState.getType() ) ) {
    persistentClass = new SingleTableSubclass( superEntity );
  }
  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;
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

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 );
}
origin: hibernate/hibernate

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 );
}
origin: org.hibernate/com.springsource.org.hibernate

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 );
}
origin: org.hibernate/com.springsource.org.hibernate.core

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 );
}
origin: org.hibernate.orm/hibernate-core

private void bindUnionSubclassEntities(
    EntitySource superEntitySource,
    PersistentClass superEntityMapping) {
  for ( IdentifiableTypeSource subTypeSource : superEntitySource.getSubTypes() ) {
    final UnionSubclass subEntityDescriptor = new UnionSubclass(
        superEntityMapping,
        metadataBuildingContext
    );
    bindUnionSubclassEntity( (SubclassEntitySourceImpl) subTypeSource, subEntityDescriptor );
    superEntityMapping.addSubclass( subEntityDescriptor );
    superEntitySource.getLocalMetadataBuildingContext().getMetadataCollector().addEntityBinding( subEntityDescriptor );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

private static PersistentClass makePersistentClass(InheritanceState inheritanceState, PersistentClass superEntity) {
  //we now know what kind of persistent entity it is
  PersistentClass persistentClass;
  //create persistent class
  if ( !inheritanceState.hasParents() ) {
    persistentClass = new RootClass();
  }
  else if ( InheritanceType.SINGLE_TABLE.equals( inheritanceState.getType() ) ) {
    persistentClass = new SingleTableSubclass( superEntity );
  }
  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;
}
origin: org.hibernate.orm/hibernate-core

private static PersistentClass makePersistentClass(
    InheritanceState inheritanceState,
    PersistentClass superEntity,
    MetadataBuildingContext metadataBuildingContext) {
  //we now know what kind of persistent entity it is
  if ( !inheritanceState.hasParents() ) {
    return new RootClass( metadataBuildingContext );
  }
  else if ( InheritanceType.SINGLE_TABLE.equals( inheritanceState.getType() ) ) {
    return new SingleTableSubclass( superEntity, metadataBuildingContext );
  }
  else if ( InheritanceType.JOINED.equals( inheritanceState.getType() ) ) {
    return new JoinedSubclass( superEntity, metadataBuildingContext );
  }
  else if ( InheritanceType.TABLE_PER_CLASS.equals( inheritanceState.getType() ) ) {
    return new UnionSubclass( superEntity, metadataBuildingContext );
  }
  else {
    throw new AssertionFailure( "Unknown inheritance type: " + inheritanceState.getType() );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

private static PersistentClass makePersistentClass(InheritanceState inheritanceState, PersistentClass superEntity) {
  //we now know what kind of persistent entity it is
  PersistentClass persistentClass;
  //create persistent class
  if ( !inheritanceState.hasParents() ) {
    persistentClass = new RootClass();
  }
  else if ( InheritanceType.SINGLE_TABLE.equals( inheritanceState.getType() ) ) {
    persistentClass = new SingleTableSubclass( superEntity );
  }
  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;
}
origin: org.grails/grails-datastore-gorm-hibernate-core

subClass = new UnionSubclass(parent);
origin: jboss.jboss-embeddable-ejb3/hibernate-all

persistentClass = new UnionSubclass( superEntity );
org.hibernate.mappingUnionSubclass<init>

Popular methods of UnionSubclass

  • getEntityName
  • getSuperclass
  • getPropertyClosureIterator
  • getTable
  • setTable
  • isAbstract
  • getEntityPersisterClass
  • getRootClass
  • accept
  • getCustomSQLUpdate
  • getCustomSQLUpdateCheckStyle
  • getMappedTable
  • getCustomSQLUpdateCheckStyle,
  • getMappedTable,
  • getSuperManagedTypeMapping,
  • isCustomUpdateCallable,
  • setClassName,
  • setMappedTable

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • findViewById (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now