Package org.hibernate.metamodel.domain

Examples of org.hibernate.metamodel.domain.Entity$Dom4jEntitySpecifics


        : new EntityBinding( superEntityBinding );

    final String entityName = entitySource.getEntityName();
    final String className = currentHierarchyEntityMode == EntityMode.POJO ? entitySource.getClassName() : null;

    final Entity entity = new Entity(
        entityName,
        className,
        currentBindingContext.makeClassReference( className ),
        superEntityBinding == null ? null : superEntityBinding.getEntity()
    );
View Full Code Here


    String entityName = hibernateMappingBinder.extractEntityName( node );
    if ( entityName == null ) {
      throw new MappingException( "Unable to determine entity name" );
    }
    entityBinding.setEntity( new Entity( entityName, superType ) );

    bindPojoRepresentation( node, entityBinding );
    bindDom4jRepresentation( node, entityBinding );
    bindMapRepresentation( node, entityBinding );
View Full Code Here

  private Set<String> synchronizedTableNames = new HashSet<String>();

  public EntityBinding initialize(BindingContext bindingContext, EntityBindingState state) {
    // todo : Entity will need both entityName and className to be effective
    this.entity = new Entity(
        state.getEntityName(),
        state.getSuperType(),
        bindingContext.makeJavaType( state.getClassName() )
    );
View Full Code Here

    entityBinding.setEntityMode( currentHierarchyEntityMode );

    final String entityName = entitySource.getEntityName();
    final String className = currentHierarchyEntityMode == EntityMode.POJO ? entitySource.getClassName() : null;

    final Entity entity = new Entity(
        entityName,
        className,
        currentBindingContext.makeClassReference( className ),
        null
    );
View Full Code Here

  private Set<String> synchronizedTableNames = new HashSet<String>();

  public EntityBinding initialize(BindingContext bindingContext, EntityBindingState state) {
    // todo : Entity will need both entityName and className to be effective
    this.entity = new Entity( state.getEntityName(), state.getSuperType(), bindingContext.makeJavaType( state.getClassName() ) );

    this.isRoot = state.isRoot();
    this.entityInheritanceType = state.getEntityInheritanceType();

    this.entityMode = state.getEntityMode();
View Full Code Here

        : new EntityBinding( superEntityBinding );

    final String entityName = entitySource.getEntityName();
    final String className = currentHierarchyEntityMode == EntityMode.POJO ? entitySource.getClassName() : null;

    final Entity entity = new Entity(
        entityName,
        className,
        currentBindingContext.makeClassReference( className ),
        superEntityBinding == null ? null : superEntityBinding.getEntity()
    );
View Full Code Here

        : new EntityBinding( superEntityBinding );

    final String entityName = entitySource.getEntityName();
    final String className = currentHierarchyEntityMode == EntityMode.POJO ? entitySource.getClassName() : null;

    final Entity entity = new Entity(
        entityName,
        className,
        currentBindingContext.makeClassReference( className ),
        superEntityBinding == null ? null : superEntityBinding.getEntity()
    );
View Full Code Here

                    EntityBinding entityBinding,
                    Hierarchical superType) {
    entityBinding.fromHbmXml(
        hibernateMappingBinder,
        entityClazz,
        new Entity( hibernateMappingBinder.extractEntityName( entityClazz ), superType )
    );
    // TODO: move this stuff out
    // transfer an explicitly defined lazy attribute
    bindPojoRepresentation( entityClazz, entityBinding );
    bindDom4jRepresentation( entityClazz, entityBinding );
View Full Code Here

  public AttributeDomainState(EntityBinding entityBinding, MappedAttribute mappedAttribute) {
    typeDescriptor = new HibernateTypeDescriptor();
    typeDescriptor.setTypeName( mappedAttribute.getType().getName() );

    Entity entity = entityBinding.getEntity();
    attribute = entity.getOrCreateSingularAttribute( mappedAttribute.getName() );
  }
View Full Code Here

      name = StringHelper.unqualify( configuredClass.getName() );
    }
    else {
      name = jpaEntityAnnotation.value( "name" ).asString();
    }
    entityBinding.setEntity( new Entity( name, getSuperType() ) );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.metamodel.domain.Entity$Dom4jEntitySpecifics

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.