Package org.nutz.dao.entity.annotation

Examples of org.nutz.dao.entity.annotation.Column


   
  }
 
  private void evalField(DatabaseMeta db, MyTable table, Entity<?> entity, Field field, EntityField ef) {
    field.setAccessible(true);
    Column column = field.getAnnotation(Column.class);
    String columnName=null;
   
    if (null == column || Strings.isBlank(column.value())){
      columnName=this.getOrmRule().javaField2DbField(field.getName());
    }else{
      columnName=column.value();
    }
    ef.setColumnName(columnName);
    ef.setReadonly((field.getAnnotation(Readonly.class) != null));
    MyField myField=table.getField(columnName);
    ef.setNotNull(!myField.isAllowNull());
View Full Code Here

TOP

Related Classes of org.nutz.dao.entity.annotation.Column

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.