Package org.hibernate.metamodel.source.annotations.attribute

Examples of org.hibernate.metamodel.source.annotations.attribute.SimpleAttribute


    );

    AttributeType attributeType = determineAttributeType( annotations );
    switch ( attributeType ) {
      case BASIC: {
        SimpleAttribute attribute = SimpleAttribute.createSimpleAttribute(
            attributeName,
            type.getName(),
            annotations
        );
        if ( attribute.isId() ) {
          idAttributeMap.put( attributeName, attribute );
        }
        else {
          simpleAttributeMap.put( attributeName, attribute );
        }
View Full Code Here


  private void bindDiscriminatorColumn(EntityBinding entityBinding) {
    final Map<DotName, List<AnnotationInstance>> typeAnnotations = JandexHelper.getTypeAnnotations(
        entityClass.getClassInfo()
    );
    SimpleAttribute discriminatorAttribute = SimpleAttribute.createDiscriminatorAttribute( typeAnnotations );
    bindSingleMappedAttribute( entityBinding, entityBinding.getEntity(), discriminatorAttribute );
  }
View Full Code Here

  @Override
  public IdentifierSource getIdentifierSource() {
    IdType idType = getEntityClass().getIdType();
    switch ( idType ) {
      case SIMPLE: {
        SimpleAttribute attribute = getEntityClass().getIdAttributes().iterator().next();
        return new SimpleIdentifierSourceImpl( attribute );
      }
      case COMPOSED: {
        break;
      }
View Full Code Here

    );

    AttributeType attributeType = determineAttributeType( annotations );
    switch ( attributeType ) {
      case BASIC: {
        SimpleAttribute attribute = SimpleAttribute.createSimpleAttribute( attributeName, type, annotations );
        if ( attribute.isId() ) {
          idAttributeMap.put( attributeName, attribute );
        } else if (attribute.isVersioned()) {
          // todo - error handling in case there are multiple version attributes
          versionAttribute = attribute;
        }
        else {
          simpleAttributeMap.put( attributeName, attribute );
View Full Code Here

TOP

Related Classes of org.hibernate.metamodel.source.annotations.attribute.SimpleAttribute

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.