Package jodd.db.oom.meta

Examples of jodd.db.oom.meta.DbColumn


    if (dbId != null) {
      columnName = dbId.value().trim();
      sqlTypeClass = dbId.sqlType();
      isId = true;
    } else {
      DbColumn dbColumn = field.getAnnotation(DbColumn.class);
      if (dbColumn != null) {
        columnName = dbColumn.value().trim();
        sqlTypeClass = dbColumn.sqlType();
      } else {
        if (isAnnotated == true) {
          return null;
        }
      }
View Full Code Here


    if (dbId != null) {
      columnName = dbId.value().trim();
      sqlTypeClass = dbId.sqlType();
      isId = true;
    } else {
      DbColumn dbColumn = null;

      if (property.getFieldDescriptor() != null) {
        dbColumn = property.getFieldDescriptor().getField().getAnnotation(DbColumn.class);
      }
      if (dbColumn == null && property.getReadMethodDescriptor() != null) {
        dbColumn = property.getReadMethodDescriptor().getMethod().getAnnotation(DbColumn.class);
      }
      if (dbColumn == null && property.getWriteMethodDescriptor() != null) {
        dbColumn = property.getWriteMethodDescriptor().getMethod().getAnnotation(DbColumn.class);
      }

      if (dbColumn != null) {
        columnName = dbColumn.value().trim();
        sqlTypeClass = dbColumn.sqlType();
      } else {
        if (isAnnotated == true) {
          return null;
        }
      }
View Full Code Here

TOP

Related Classes of jodd.db.oom.meta.DbColumn

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.