public static Field[] getFieldArrayIncludeSupClassExcludeUID(Class<?> clazz) {
        Field[] currField = clazz.getDeclaredFields();
        clazz = clazz.getSuperclass();
        Field[] supField = clazz.getDeclaredFields();
        Field[] temp = new Field[currField.length + supField.length];
        int length = 0;
        for (Field curr : currField) {
            if ("serialVersionUID".equals(curr.getName())) {
                continue;
            }
            temp[length] = curr;
            length++;
        }
        for (Field sup : supField) {
            if ("serialVersionUID".equals(sup.getName())) {
                continue;
            }
            temp[length] = sup;
            length++;
        }
        Field[] all = new Field[length];
        for (int i = 0; i < all.length; i++) {
            all[i] = temp[i];
        }
        return all;
    }
public static Field [ ] getFieldArrayIncludeSupClassExcludeUID ( Class < ? > clazz ) { Field [ ] currField = clazz . getDeclaredFields ( ) ; clazz = clazz . getSuperclass ( ) ; Field [ ] supField = clazz . getDeclaredFields ( ) ; Field [ ] temp = new Field [ currField . length + supField . length ] ; int length = 0 ; for ( Field curr : currField ) { if ( "serialVersionUID" . equals ( curr . getName ( ) ) ) { continue ; } temp [ length ] = curr ; length ++ ; } for ( Field sup : supField ) { if ( "serialVersionUID" . equals ( sup . getName ( ) ) ) { continue ; } temp [ length ] = sup ; length ++ ; } Field [ ] all = new Field [ length ] ; for ( int i = 0 ; i < all . length ; i ++ ) { all [ i ] = temp [ i ] ; } return all ; }
获取指定对象的所有属性，包含父类属性
<p>Function: getFieldArrayExcludeUID</p>
<p>Description: 不抓取serialVersionUID属性</p>

@param clazz
@return
@author acexy@thankjava.com
@date 2014-12-16 上午11:27:44
@version 1.0