hibernate查询是
空指针问题?ss2h集成中
实体类:
Cartes.java
public class Cartes implements java.io.Serializable {
// Fields
private String cid;
private String cname;
private Integer type;
private Float price;
private String cremork;
private Set elists = new HashSet(0);
// Constructors
/** default constructor */
public Cartes() {
}
/** minimal constructor */
public Cartes(String cname, Integer type, Float price) {
this.cname = cname;
this.type = type;
this.price = price;
}
/** full constructor */
public Cartes(String cname, Integer type, Float price, String cremork,
Set elists) {
this.cname = cname;
this.type = type;
this.price = price;
this.cremork = cremork;
this.elists = elists;
}
// Property accessors
public String getCid() {
return this.cid;
}
public void setCid(String cid) {
this.cid = cid;
}
public String getCname() {
return this.cname;
}
public void setCname(String cname) {
this.cname = cname;
}
public Integer getType() {
return this.type;
}
public void setType(Integer type) {
this.type = type;
}
public Float getPrice() {
return this.price;
}
public void setPrice(Float price) {
this.price = price;
}
public String getCremork() {
return this.cremork;
}
public void setCremork(String cremork) {
this.cremork = cremork;
}
public Set getElists() {
return this.elists;
}
public void setElists(Set elists) {
this.elists = elists;
}
}
Elist.java
public class Elist implements java.io.Serializable {
// Fields
private String eid;
private Cartes cartes;
private People people;
private Users users;
private Timestamp etime;
private Integer enum_;
// Constructors
/** default constructor */
public Elist() {
}
/** full constructor */
public Elist(Cartes cartes, People people, Users users, Timestamp etime,
Integer enum_) {
this.cartes = cartes;
this.people = people;
this.users = users;
this.etime = etime;
this.enum_ = enum_;
}
// Property accessors
public String getEid() {
return this.eid;
}
public void setEid(String eid) {
this.eid = eid;
}
public Cartes getCartes() {
return this.cartes;
}
public void setCartes(Cartes ca