• 大小: 23.11MB
    文件类型: .gz
    金币: 1
    下载: 0 次
    发布日期: 2023-07-07
  • 语言: 其他
  • 标签: spring4.x  

资源简介

我也不想要资源分,可是最少选2,这。。。简直了。。。

资源截图

代码片段和文件信息

package com.smart;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.Id;
import java.lang.reflect.Field;
import java.io.Serializable;

/**
 * @author 陈雄华
 * @version 1.0
 */
@Entity
@Table(name=“T_USER“)
public class User implements Serializable{
    @Id
    @Column(name = “USER_NAME“)
    private String userName;

    private String password;

    private int score;

    @Column(name = “LAST_LOGON_TIME“)
    private long lastLogonTime = 0;


    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public long getLastLogonTime() {
        return lastLogonTime;
    }

    public void setLastLogonTime(long lastLogonTime) {
        this.lastLogonTime = lastLogonTime;
    }


    public String toString() {
        return (new ReflectionToStringBuilder(this) {
            protected boolean accept(Field f) {
                if(f.getType().isPrimitive() || f.getType() == String.class ){
                    return true;
                }else{
                    return false;
                }
            }
        }).toString();
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2003-04-25 08:36  meta-INF\
     文件         371  2003-04-25 08:36  meta-INF\MANIFEST.MF
     目录           0  2003-04-25 08:31  org\
     目录           0  2003-04-25 08:31  org\apache\
     目录           0  2003-04-25 08:31  org\apache\bcel\
     目录           0  2003-04-25 08:31  org\apache\bcel\classfile\
     目录           0  2003-04-25 08:31  org\apache\bcel\generic\
     目录           0  2003-04-25 08:31  org\apache\bcel\util\
     目录           0  2003-04-25 08:31  org\apache\bcel\verifier\
     目录           0  2003-04-25 08:31  org\apache\bcel\verifier\exc\
     目录           0  2003-04-25 08:31  org\apache\bcel\verifier\statics\
     目录           0  2003-04-25 08:31  org\apache\bcel\verifier\structurals\
     文件        2928  2003-04-25 08:31  org\apache\bcel\classfile\AccessFlags.class
     文件        5109  2003-04-25 08:31  org\apache\bcel\classfile\Attribute.class
     文件         272  2003-04-25 08:31  org\apache\bcel\classfile\AttributeReader.class
     文件         478  2003-04-25 08:31  org\apache\bcel\classfile\ClassFormatException.class
     文件        4955  2003-04-25 08:31  org\apache\bcel\classfile\ClassParser.class
     文件        6400  2003-04-25 08:31  org\apache\bcel\classfile\Code.class
     文件        3724  2003-04-25 08:31  org\apache\bcel\classfile\CodeException.class
     文件        2623  2003-04-25 08:31  org\apache\bcel\classfile\Constant.class
     文件        2459  2003-04-25 08:31  org\apache\bcel\classfile\ConstantClass.class
     文件        2218  2003-04-25 08:31  org\apache\bcel\classfile\ConstantCP.class
     文件        2069  2003-04-25 08:31  org\apache\bcel\classfile\ConstantDouble.class
     文件        1104  2003-04-25 08:31  org\apache\bcel\classfile\ConstantFieldref.class
     文件        2060  2003-04-25 08:31  org\apache\bcel\classfile\ConstantFloat.class
     文件        2061  2003-04-25 08:31  org\apache\bcel\classfile\ConstantInteger.class
     文件        1154  2003-04-25 08:31  org\apache\bcel\classfile\ConstantInterfaceMethodref.class
     文件        2052  2003-04-25 08:31  org\apache\bcel\classfile\ConstantLong.class
     文件        1109  2003-04-25 08:31  org\apache\bcel\classfile\ConstantMethodref.class
     文件        2522  2003-04-25 08:31  org\apache\bcel\classfile\ConstantNameAndType.class
     文件         225  2003-04-25 08:31  org\apache\bcel\classfile\Constantobject.class
............此处省略355个文件信息

评论

共有 条评论

相关资源