Package javax.persistence

Examples of javax.persistence.MapKeyColumn


    assertAnnotationNotPresent( MapKeyTemporal.class );
    assertAnnotationNotPresent( MapKeyEnumerated.class );
    assertAnnotationPresent( MapKeyColumn.class );
    assertAnnotationNotPresent( MapKeyJoinColumns.class );
    assertAnnotationNotPresent( MapKeyJoinColumn.class );
    MapKeyColumn keyColAnno = reader.getAnnotation( MapKeyColumn.class );
    assertEquals( "", keyColAnno.columnDefinition() );
    assertEquals( "", keyColAnno.name() );
    assertEquals( "", keyColAnno.table() );
    assertFalse( keyColAnno.nullable() );
    assertTrue( keyColAnno.insertable() );
    assertFalse( keyColAnno.unique() );
    assertTrue( keyColAnno.updatable() );
    assertEquals( 255, keyColAnno.length() );
    assertEquals( 0, keyColAnno.precision() );
    assertEquals( 0, keyColAnno.scale() );
  }
View Full Code Here


    assertAnnotationNotPresent( MapKeyTemporal.class );
    assertAnnotationNotPresent( MapKeyEnumerated.class );
    assertAnnotationPresent( MapKeyColumn.class );
    assertAnnotationNotPresent( MapKeyJoinColumns.class );
    assertAnnotationNotPresent( MapKeyJoinColumn.class );
    MapKeyColumn keyColAnno = reader.getAnnotation( MapKeyColumn.class );
    assertEquals( "int", keyColAnno.columnDefinition() );
    assertEquals( "col1", keyColAnno.name() );
    assertEquals( "table1", keyColAnno.table() );
    assertTrue( keyColAnno.nullable() );
    assertFalse( keyColAnno.insertable() );
    assertTrue( keyColAnno.unique() );
    assertFalse( keyColAnno.updatable() );
    assertEquals( 50, keyColAnno.length() );
    assertEquals( 2, keyColAnno.precision() );
    assertEquals( 1, keyColAnno.scale() );
  }
View Full Code Here

    assertAnnotationNotPresent( MapKeyTemporal.class );
    assertAnnotationNotPresent( MapKeyEnumerated.class );
    assertAnnotationPresent( MapKeyColumn.class );
    assertAnnotationNotPresent( MapKeyJoinColumns.class );
    assertAnnotationNotPresent( MapKeyJoinColumn.class );
    MapKeyColumn keyColAnno = reader.getAnnotation( MapKeyColumn.class );
    assertEquals( "", keyColAnno.columnDefinition() );
    assertEquals( "", keyColAnno.name() );
    assertEquals( "", keyColAnno.table() );
    assertFalse( keyColAnno.nullable() );
    assertTrue( keyColAnno.insertable() );
    assertFalse( keyColAnno.unique() );
    assertTrue( keyColAnno.updatable() );
    assertEquals( 255, keyColAnno.length() );
    assertEquals( 0, keyColAnno.precision() );
    assertEquals( 0, keyColAnno.scale() );
  }
View Full Code Here

    assertAnnotationNotPresent( MapKeyTemporal.class );
    assertAnnotationNotPresent( MapKeyEnumerated.class );
    assertAnnotationPresent( MapKeyColumn.class );
    assertAnnotationNotPresent( MapKeyJoinColumns.class );
    assertAnnotationNotPresent( MapKeyJoinColumn.class );
    MapKeyColumn keyColAnno = reader.getAnnotation( MapKeyColumn.class );
    assertEquals( "int", keyColAnno.columnDefinition() );
    assertEquals( "col1", keyColAnno.name() );
    assertEquals( "table1", keyColAnno.table() );
    assertTrue( keyColAnno.nullable() );
    assertFalse( keyColAnno.insertable() );
    assertTrue( keyColAnno.unique() );
    assertFalse( keyColAnno.updatable() );
    assertEquals( 50, keyColAnno.length() );
    assertEquals( 2, keyColAnno.precision() );
    assertEquals( 1, keyColAnno.scale() );
  }
View Full Code Here

    assertAnnotationNotPresent( MapKeyTemporal.class );
    assertAnnotationNotPresent( MapKeyEnumerated.class );
    assertAnnotationPresent( MapKeyColumn.class );
    assertAnnotationNotPresent( MapKeyJoinColumns.class );
    assertAnnotationNotPresent( MapKeyJoinColumn.class );
    MapKeyColumn keyColAnno = reader.getAnnotation( MapKeyColumn.class );
    assertEquals( "int", keyColAnno.columnDefinition() );
    assertEquals( "col1", keyColAnno.name() );
    assertEquals( "table1", keyColAnno.table() );
    assertTrue( keyColAnno.nullable() );
    assertFalse( keyColAnno.insertable() );
    assertTrue( keyColAnno.unique() );
    assertFalse( keyColAnno.updatable() );
    assertEquals( 50, keyColAnno.length() );
    assertEquals( 2, keyColAnno.precision() );
    assertEquals( 1, keyColAnno.scale() );
  }
View Full Code Here

TOP

Related Classes of javax.persistence.MapKeyColumn

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.