package com.github.abel533.model;

import javax.persistence.Column;
import javax.persistence.Id;

/**
 * Description: Country
 * Author: liuzh
 * Update: liuzh(2014-06-06 13:38)
 */
public class Country {
    @Id
    private Integer id;
    @Column
    private String countryname;
    private String countrycode;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCountryname() {
        return countryname;
    }

    public void setCountryname(String countryname) {
        this.countryname = countryname;
    }

    public String getCountrycode() {
        return countrycode;
    }

    public void setCountrycode(String countrycode) {
        this.countrycode = countrycode;
    }

    @Override
    public String toString() {
        return "Country{" +
                "id=" + id +
                ", countryname='" + countryname + '\'' +
                ", countrycode='" + countrycode + '\'' +
                '}';
    }
}

@@ -89,16 +89,45 @@
 ence.Id;
+%0Aimport java.io.Serializable;
 %0A%0A/**%0A *
@@ -225,17 +225,113 @@
 Country 
-%7B
+implements Serializable %7B%0A    private static final long serialVersionUID = -1626761012846137805L;
 %0A    @Id

实现序列化接口，测试二级缓存使用。