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

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


  @Override
  public SingularAttributeSource getVersioningAttributeSource() {
    SingularAttributeSource attributeSource = null;
    EntityClass entityClass = getEntityClass();
    if ( entityClass.getVersionAttribute() != null ) {
      attributeSource = new SingularAttributeSourceImpl( entityClass.getVersionAttribute() );
    }
    return attributeSource;
  }
View Full Code Here


      AttributeOverride attributeOverride = null;
      String tmp = getPath() + PATH_SEPERATOR + attribute.getName();
      if ( attributeOverrides.containsKey( tmp ) ) {
        attributeOverride = attributeOverrides.get( tmp );
      }
      attributeList.add( new SingularAttributeSourceImpl( attribute, attributeOverride ) );
    }
    for ( EmbeddableClass embeddable : embeddableClass.getEmbeddedClasses().values() ) {
      attributeList.add(
          new ComponentAttributeSourceImpl(
              embeddable,
View Full Code Here

  @Override
  public Iterable<AttributeSource> attributeSources() {
    List<AttributeSource> attributeList = new ArrayList<AttributeSource>();
    for ( BasicAttribute attribute : entityClass.getSimpleAttributes() ) {
      attributeList.add( new SingularAttributeSourceImpl( attribute ) );
    }
    for ( EmbeddableClass component : entityClass.getEmbeddedClasses().values() ) {
      attributeList.add(
          new ComponentAttributeSourceImpl(
              component,
View Full Code Here

  @Override
  public SingularAttributeSource getVersioningAttributeSource() {
    SingularAttributeSource attributeSource = null;
    EntityClass entityClass = getEntityClass();
    if ( entityClass.getVersionAttribute() != null ) {
      attributeSource = new SingularAttributeSourceImpl( entityClass.getVersionAttribute() );
    }
    return attributeSource;
  }
View Full Code Here

      AttributeOverride attributeOverride = null;
      String tmp = getPath() + PATH_SEPERATOR + attribute.getName();
      if ( attributeOverrides.containsKey( tmp ) ) {
        attributeOverride = attributeOverrides.get( tmp );
      }
      attributeList.add( new SingularAttributeSourceImpl( attribute, attributeOverride ) );
    }
    for ( EmbeddableClass embeddable : embeddableClass.getEmbeddedClasses().values() ) {
      attributeList.add(
          new ComponentAttributeSourceImpl(
              embeddable,
View Full Code Here

  @Override
  public Iterable<AttributeSource> attributeSources() {
    List<AttributeSource> attributeList = new ArrayList<AttributeSource>();
    for ( BasicAttribute attribute : entityClass.getSimpleAttributes() ) {
      attributeList.add( new SingularAttributeSourceImpl( attribute ) );
    }
    for ( EmbeddableClass component : entityClass.getEmbeddedClasses().values() ) {
      attributeList.add( new ComponentAttributeSourceImpl( component, "", entityClass.getAttributeOverrideMap() ) );
    }
    for ( AssociationAttribute associationAttribute : entityClass.getAssociationAttributes() ) {
View Full Code Here

  @Override
  public SingularAttributeSource getVersioningAttributeSource() {
    SingularAttributeSource attributeSource = null;
    if ( getEntityClass().getVersionAttribute() != null ) {
      attributeSource = new SingularAttributeSourceImpl( getEntityClass().getVersionAttribute() );
    }
    return attributeSource;
  }
View Full Code Here

  @Override
  public Iterable<AttributeSource> attributeSources() {
    List<AttributeSource> attributeList = new ArrayList<AttributeSource>();
    for ( SimpleAttribute attribute : entityClass.getSimpleAttributes() ) {
      attributeList.add( new SingularAttributeSourceImpl( attribute ) );
    }
    for ( AssociationAttribute associationAttribute : entityClass.getAssociationAttributes() ) {
      attributeList.add( new ToOneAttributeSourceImpl( associationAttribute ) );
    }
    return attributeList;
View Full Code Here

  @Override
  public Iterable<AttributeSource> attributeSources() {
    List<AttributeSource> attributeList = new ArrayList<AttributeSource>();
    for ( BasicAttribute attribute : entityClass.getSimpleAttributes() ) {
      attributeList.add( new SingularAttributeSourceImpl( attribute ) );
    }
    for ( EmbeddableClass component : entityClass.getEmbeddedClasses().values() ) {
      attributeList.add(
          new ComponentAttributeSourceImpl(
              component,
View Full Code Here

TOP

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

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.