Package javax.persistence

Examples of javax.persistence.PrimaryKeyJoinColumns


        PrimaryKeyJoinColumn annotation = getJavaAnnotation( PrimaryKeyJoinColumn.class );
        if ( annotation != null ) {
          columns = new PrimaryKeyJoinColumn[] { annotation };
        }
        else {
          PrimaryKeyJoinColumns annotations = getJavaAnnotation( PrimaryKeyJoinColumns.class );
          columns = annotations != null ? annotations.value() : columns;
        }
      }
    }
    if ( columns.length > 0 ) {
      AnnotationDescriptor ad = new AnnotationDescriptor( PrimaryKeyJoinColumns.class );
View Full Code Here


    Ejb3JoinColumn[] inheritanceJoinedColumns = null;
    final boolean hasJoinedColumns = inheritanceState.hasParents()
        && InheritanceType.JOINED.equals( inheritanceState.getType() );
    if ( hasJoinedColumns ) {
      //@Inheritance(JOINED) subclass need to link back to the super entity
      PrimaryKeyJoinColumns jcsAnn = clazzToProcess.getAnnotation( PrimaryKeyJoinColumns.class );
      boolean explicitInheritanceJoinedColumns = jcsAnn != null && jcsAnn.value().length != 0;
      if ( explicitInheritanceJoinedColumns ) {
        int nbrOfInhJoinedColumns = jcsAnn.value().length;
        PrimaryKeyJoinColumn jcAnn;
        inheritanceJoinedColumns = new Ejb3JoinColumn[nbrOfInhJoinedColumns];
        for ( int colIndex = 0; colIndex < nbrOfInhJoinedColumns; colIndex++ ) {
          jcAnn = jcsAnn.value()[colIndex];
          inheritanceJoinedColumns[colIndex] = Ejb3JoinColumn.buildJoinColumn(
              jcAnn, null, superEntity.getIdentifier(),
              null, null, mappings
          );
        }
View Full Code Here

      PrimaryKeyJoinColumn annotation = getJavaAnnotation( PrimaryKeyJoinColumn.class );
      if ( annotation != null ) {
        columns = new PrimaryKeyJoinColumn[] { annotation };
      }
      else {
        PrimaryKeyJoinColumns annotations = getJavaAnnotation( PrimaryKeyJoinColumns.class );
        columns = annotations != null ? annotations.value() : columns;
      }
    }
    if ( columns.length > 0 ) {
      AnnotationDescriptor ad = new AnnotationDescriptor( PrimaryKeyJoinColumns.class );
      ad.setValue( "value", columns );
View Full Code Here

    }
    final boolean hasJoinedColumns = inheritanceState.hasParents
        && InheritanceType.JOINED.equals( inheritanceState.type );
    if ( hasJoinedColumns ) {
      //@Inheritance(JOINED) subclass need to link back to the super entity
      PrimaryKeyJoinColumns jcsAnn = annotatedClass.getAnnotation( PrimaryKeyJoinColumns.class );
      boolean explicitInheritanceJoinedColumns = jcsAnn != null && jcsAnn.value().length != 0;
      if ( explicitInheritanceJoinedColumns ) {
        int nbrOfInhJoinedColumns = jcsAnn.value().length;
        PrimaryKeyJoinColumn jcAnn;
        inheritanceJoinedColumns = new Ejb3JoinColumn[nbrOfInhJoinedColumns];
        for (int colIndex = 0; colIndex < nbrOfInhJoinedColumns; colIndex++) {
          jcAnn = jcsAnn.value()[colIndex];
          inheritanceJoinedColumns[colIndex] = Ejb3JoinColumn.buildJoinColumn(
              jcAnn, null, superEntity.getIdentifier(),
              (Map<String, Join>) null, (PropertyHolder) null, mappings
          );
        }
View Full Code Here

        PrimaryKeyJoinColumn annotation = getPhysicalAnnotation( PrimaryKeyJoinColumn.class );
        if ( annotation != null ) {
          columns = new PrimaryKeyJoinColumn[] { annotation };
        }
        else {
          PrimaryKeyJoinColumns annotations = getPhysicalAnnotation( PrimaryKeyJoinColumns.class );
          columns = annotations != null ? annotations.value() : columns;
        }
      }
    }
    if ( columns.length > 0 ) {
      AnnotationDescriptor ad = new AnnotationDescriptor( PrimaryKeyJoinColumns.class );
View Full Code Here

    Ejb3JoinColumn[] inheritanceJoinedColumns = null;
    final boolean hasJoinedColumns = inheritanceState.hasParents()
        && InheritanceType.JOINED.equals( inheritanceState.getType() );
    if ( hasJoinedColumns ) {
      //@Inheritance(JOINED) subclass need to link back to the super entity
      PrimaryKeyJoinColumns jcsAnn = clazzToProcess.getAnnotation( PrimaryKeyJoinColumns.class );
      boolean explicitInheritanceJoinedColumns = jcsAnn != null && jcsAnn.value().length != 0;
      if ( explicitInheritanceJoinedColumns ) {
        int nbrOfInhJoinedColumns = jcsAnn.value().length;
        PrimaryKeyJoinColumn jcAnn;
        inheritanceJoinedColumns = new Ejb3JoinColumn[nbrOfInhJoinedColumns];
        for ( int colIndex = 0; colIndex < nbrOfInhJoinedColumns; colIndex++ ) {
          jcAnn = jcsAnn.value()[colIndex];
          inheritanceJoinedColumns[colIndex] = Ejb3JoinColumn.buildJoinColumn(
              jcAnn, null, superEntity.getIdentifier(),
              ( Map<String, Join> ) null, ( PropertyHolder ) null, mappings
          );
        }
View Full Code Here

    Ejb3JoinColumn[] inheritanceJoinedColumns = null;
    final boolean hasJoinedColumns = inheritanceState.hasParents()
        && InheritanceType.JOINED.equals( inheritanceState.getType() );
    if ( hasJoinedColumns ) {
      //@Inheritance(JOINED) subclass need to link back to the super entity
      PrimaryKeyJoinColumns jcsAnn = clazzToProcess.getAnnotation( PrimaryKeyJoinColumns.class );
      boolean explicitInheritanceJoinedColumns = jcsAnn != null && jcsAnn.value().length != 0;
      if ( explicitInheritanceJoinedColumns ) {
        int nbrOfInhJoinedColumns = jcsAnn.value().length;
        PrimaryKeyJoinColumn jcAnn;
        inheritanceJoinedColumns = new Ejb3JoinColumn[nbrOfInhJoinedColumns];
        for (int colIndex = 0; colIndex < nbrOfInhJoinedColumns; colIndex++) {
          jcAnn = jcsAnn.value()[colIndex];
          inheritanceJoinedColumns[colIndex] = Ejb3JoinColumn.buildJoinColumn(
              jcAnn, null, superEntity.getIdentifier(),
              ( Map<String, Join> ) null, ( PropertyHolder ) null, mappings
          );
        }
View Full Code Here

        PrimaryKeyJoinColumn annotation = getJavaAnnotation( PrimaryKeyJoinColumn.class );
        if ( annotation != null ) {
          columns = new PrimaryKeyJoinColumn[] { annotation };
        }
        else {
          PrimaryKeyJoinColumns annotations = getJavaAnnotation( PrimaryKeyJoinColumns.class );
          columns = annotations != null ? annotations.value() : columns;
        }
      }
    }
    if ( columns.length > 0 ) {
      AnnotationDescriptor ad = new AnnotationDescriptor( PrimaryKeyJoinColumns.class );
View Full Code Here

      PrimaryKeyJoinColumn annotation = getJavaAnnotation( PrimaryKeyJoinColumn.class );
      if ( annotation != null ) {
        columns = new PrimaryKeyJoinColumn[] { annotation };
      }
      else {
        PrimaryKeyJoinColumns annotations = getJavaAnnotation( PrimaryKeyJoinColumns.class );
        columns = annotations != null ? annotations.value() : columns;
      }
    }
    if ( columns.length > 0 ) {
      AnnotationDescriptor ad = new AnnotationDescriptor( PrimaryKeyJoinColumns.class );
      ad.setValue( "value", columns );
View Full Code Here

    Ejb3JoinColumn[] inheritanceJoinedColumns = null;
    final boolean hasJoinedColumns = inheritanceState.hasParents()
        && InheritanceType.JOINED.equals( inheritanceState.getType() );
    if ( hasJoinedColumns ) {
      //@Inheritance(JOINED) subclass need to link back to the super entity
      PrimaryKeyJoinColumns jcsAnn = clazzToProcess.getAnnotation( PrimaryKeyJoinColumns.class );
      boolean explicitInheritanceJoinedColumns = jcsAnn != null && jcsAnn.value().length != 0;
      if ( explicitInheritanceJoinedColumns ) {
        int nbrOfInhJoinedColumns = jcsAnn.value().length;
        PrimaryKeyJoinColumn jcAnn;
        inheritanceJoinedColumns = new Ejb3JoinColumn[nbrOfInhJoinedColumns];
        for ( int colIndex = 0; colIndex < nbrOfInhJoinedColumns; colIndex++ ) {
          jcAnn = jcsAnn.value()[colIndex];
          inheritanceJoinedColumns[colIndex] = Ejb3JoinColumn.buildJoinColumn(
              jcAnn, null, superEntity.getIdentifier(),
              ( Map<String, Join> ) null, ( PropertyHolder ) null, mappings
          );
        }
View Full Code Here

TOP

Related Classes of javax.persistence.PrimaryKeyJoinColumns

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.