Examples of columnDefinition()


Examples of javax.persistence.OrderColumn.columnDefinition()

    reader = getReader( Entity2.class, "field1", "many-to-many.orm4.xml" );
    assertAnnotationPresent( ManyToMany.class );
    assertAnnotationNotPresent( OrderBy.class );
    assertAnnotationPresent( OrderColumn.class );
    OrderColumn orderColumnAnno = reader.getAnnotation( OrderColumn.class );
    assertEquals( "int", orderColumnAnno.columnDefinition() );
    assertEquals( "col1", orderColumnAnno.name() );
    assertFalse( orderColumnAnno.insertable() );
    assertFalse( orderColumnAnno.nullable() );
    assertFalse( orderColumnAnno.updatable() );
  }
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.