Examples of InheritanceType


Examples of org.hibernate.metamodel.binding.InheritanceType

  private static InheritanceType determineInheritanceType(List<ClassInfo> classes) {
    if ( classes.size() == 1 ) {
      return InheritanceType.NO_INHERITANCE;
    }

    InheritanceType inheritanceType = null;
    for ( ClassInfo info : classes ) {
      AnnotationInstance inheritanceAnnotation = JandexHelper.getSingleAnnotation(
          info, JPADotNames.INHERITANCE
      );
      if ( inheritanceAnnotation == null ) {
        continue;
      }

      javax.persistence.InheritanceType jpaInheritanceType = Enum.valueOf(
          javax.persistence.InheritanceType.class, inheritanceAnnotation.value( "strategy" ).asEnum()
      );
      InheritanceType tmpInheritanceType = InheritanceType.get( jpaInheritanceType );
      if ( tmpInheritanceType == null ) {
        // default inheritance type is single table
        inheritanceType = InheritanceType.SINGLE_TABLE;
      }
View Full Code Here

Examples of org.hibernate.metamodel.binding.InheritanceType

          processedEntities,
          classToDirectSubClassMap
      );

      AccessType defaultAccessType = determineDefaultAccessType( rootClassWithAllSubclasses );
      InheritanceType hierarchyInheritanceType = determineInheritanceType(
          rootClassInfo,
          rootClassWithAllSubclasses
      );

      // create the root entity source
View Full Code Here

Examples of org.hibernate.metamodel.binding.InheritanceType

    if(classes.size() == 1) {
      return InheritanceType.NO_INHERITANCE;
    }

    // if we have more than one entity class the default is SINGLE_TABLE
    InheritanceType inheritanceType = InheritanceType.SINGLE_TABLE;
    AnnotationInstance inheritanceAnnotation = JandexHelper.getSingleAnnotation(
        rootClassInfo, JPADotNames.INHERITANCE
    );
    if ( inheritanceAnnotation != null ) {
      String enumName = inheritanceAnnotation.value( "strategy" ).asEnum();
View Full Code Here

Examples of org.hibernate.metamodel.binding.InheritanceType

  private InheritanceType determineInheritanceType(List<ClassInfo> classes) {
    if ( classes.size() == 1 ) {
      return InheritanceType.NO_INHERITANCE;
    }

    InheritanceType inheritanceType = null;
    for ( ClassInfo info : classes ) {
      AnnotationInstance inheritanceAnnotation = JandexHelper.getSingleAnnotation(
          info, JPADotNames.INHERITANCE
      );
      if ( inheritanceAnnotation == null ) {
        continue;
      }

      javax.persistence.InheritanceType jpaInheritanceType = Enum.valueOf(
          javax.persistence.InheritanceType.class, inheritanceAnnotation.value( "strategy" ).asEnum()
      );
      InheritanceType tmpInheritanceType = InheritanceType.get( jpaInheritanceType );
      if ( tmpInheritanceType == null ) {
        // default inheritance type is single table
        inheritanceType = InheritanceType.SINGLE_TABLE;
      }
View Full Code Here

Examples of org.hibernate.metamodel.binding.InheritanceType

  private InheritanceType determineInheritanceType(List<ClassInfo> classes) {
    if ( classes.size() == 1 ) {
      return InheritanceType.NO_INHERITANCE;
    }

    InheritanceType inheritanceType = null;
    for ( ClassInfo info : classes ) {
      AnnotationInstance inheritanceAnnotation = JandexHelper.getSingleAnnotation(
          info, JPADotNames.INHERITANCE
      );
      if ( inheritanceAnnotation == null ) {
        continue;
      }

      javax.persistence.InheritanceType jpaInheritanceType = Enum.valueOf(
          javax.persistence.InheritanceType.class, inheritanceAnnotation.value( "strategy" ).asEnum()
      );
      InheritanceType tmpInheritanceType = InheritanceType.get( jpaInheritanceType );
      if ( tmpInheritanceType == null ) {
        // default inheritance type is single table
        inheritanceType = InheritanceType.SINGLE_TABLE;
      }
View Full Code Here

Examples of org.objectstyle.wolips.eomodeler.core.model.InheritanceType

  public Image getImage(Object _element) {
    return null;
  }

  public String getText(Object _element) {
    InheritanceType inheritanceType = (InheritanceType) _element;
    return inheritanceType.getName();
  }
View Full Code Here

Examples of org.objectstyle.wolips.eomodeler.core.model.InheritanceType

      if (results == Window.OK) {
        String entityName = dialog.getEntityName();
        if (entityName != null && entityName.trim().length() > 0) {
          try {
            EOEntity parentEntity = dialog.getParentEntity();
            InheritanceType inheritanceType = dialog.getInheritanceType();
            String restrictingQualifier = dialog.getRestrictingQualifier();
            EOModel destinationModel = dialog.getDestinationModel();
            SubclassOperation operation = new SubclassOperation(parentEntity, inheritanceType, destinationModel, entityName, restrictingQualifier);
            operation.addContext(EOModelUtils.getUndoContext(model));
            IOperationHistory operationHistory = PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();
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.