Package org.nutz.dao.entity.annotation

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


        ef.setType(FieldType.ID);
      }
    }

    // @Name
    Name name = field.getAnnotation(Name.class);
    if (null != name) {
      // Check
      if (!ef.getMirror().isStringLike())
        throw error(entity, "@Name field [%s] must be a String!", field.getName());
      // Not null
      ef.setNotNull(true);
      // Set Name
      if (name.casesensitive())
        ef.setType(FieldType.CASESENSITIVE_NAME);
      else
        ef.setType(FieldType.NAME);
    }
View Full Code Here

TOP

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

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.