Package javax.persistence

Examples of javax.persistence.Column.precision()


    assertTrue( column.insertable() );
    assertTrue( column.updatable() );
    assertEquals( "", column.columnDefinition() );
    assertEquals( "", column.table() );
    assertEquals( 255, column.length() );
    assertEquals( 0, column.precision() );
    assertEquals( 0, column.scale() );
  }

  public void testColumnAllAttributes() throws Exception {
    reader = getReader( Entity3.class, "field1", "element-collection.orm17.xml" );
View Full Code Here


    assertFalse( column.insertable() );
    assertFalse( column.updatable() );
    assertEquals( "int", column.columnDefinition() );
    assertEquals( "table1", column.table() );
    assertEquals( 50, column.length() );
    assertEquals( 2, column.precision() );
    assertEquals( 1, column.scale() );
  }

  public void testTemporal() throws Exception {
    reader = getReader( Entity3.class, "field1", "element-collection.orm18.xml" );
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.