Hibernate Map集合映射

By | 2015年2月1日


package com.renyiwei.wydns.domain;

import java.io.Serializable;
import java.util.Map;

public class Client implements Serializable {

private static final long serialVersionUID = 4147291866512301737L;
private Long id;
private Byte iscompany;
private String realname;
private String companyname;
private String email;
private String phonenumber;
private String notes;
private Integer status = null;

private Map> addon; //这个该怎么映射呢

/**
* 实名认证状态 0:'未认证',1:'认证中',2:'认证成功',3:'认证失败'
*/
private Byte certifystatus = null;

public Integer getStatus() {
return status;
}

public void setStatus(Integer status) {
this.status = status;
}

public Long getId() {
return id;
}

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

public Byte getIscompany() {
return iscompany;
}

public void setIscompany(Byte iscompany) {
this.iscompany = iscompany;
}

public String getRealname() {
return realname;
}

public void setRealname(String realname) {
this.realname = realname;
}

public String getCompanyname() {
return companyname;
}

public void setCompanyname(String companyname) {
this.companyname = companyname;
}

public String getEmail() {
return email;
}

public void setEmail(String email) {
this.email = email;
}

public String getPhonenumber() {
return phonenumber;
}

public void setPhonenumber(String phonenumber) {
this.phonenumber = phonenumber;
}

public String getNotes() {
return notes;
}

public void setNotes(String notes) {
this.notes = notes;
}

public Byte getCertifystatus() {
return certifystatus;
}

public void setCertifystatus(Byte certifystatus) {
this.certifystatus = certifystatus;
}

public Map> getAddon() {
return addon;
}

public void setAddon(Map> addon) {
this.addon = addon;
}
}

映射文件:











发表评论