Code example for Field

Methods: getType

0
    public static boolean isFinder(Field field) {
        return field.getAnnotation(Finder.class) != null;
    } 
 
    public static boolean isSimpleColumnType(Field field) {
        Class<?> clazz = field.getType();
        return isSimpleColumnType(clazz);
    } 
 
    public static boolean isSimpleColumnType(Class columnType) {
        return columnType.isPrimitive() ||
                columnType.equals(String.class) ||
                columnType.equals(Integer.class) ||
                columnType.equals(Long.class) ||
                columnType.equals(Date.class) ||
                columnType.equals(java.sql.Date.class) ||
                columnType.equals(Boolean.class) ||
                columnType.equals(Float.class) ||
                columnType.equals(Double.class) ||
                columnType.equals(Byte.class) ||
                columnType.equals(Short.class) ||