i have this error:
Quote:
ERROR [org.hibernate.proxy.BasicLazyInitializer] CGLIB Enhancement failed: my.com.shinyang.ilms.model.MCurrency
java.lang.IllegalArgumentException: Superclass has no null constructors but no arguments were given
my model file is as shown below:
public class MCurrency implements java.io.Serializable, TableData {
Code:
// Fields
private String code;
private BigDecimal rate;
private String description;
private BigDecimal unit;
private Date fromDate;
private Date toDate;
// Constructors
public MCurrency(String code, String description, BigDecimal rate, BigDecimal unit, Date fromDate, Date toDate) {
this.code = code;
this.description = description;
this.rate = rate;
this.unit = unit;
this.fromDate = fromDate;
this.toDate = toDate;
}
/** minimal constructor */
public MCurrency(String code) {
this.code = code;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Date getFromDate() {
return fromDate;
}
public void setFromDate(Date fromDate) {
this.fromDate = fromDate;
}
public Date getToDate() {
return toDate;
}
public void setToDate(Date toDate) {
this.toDate = toDate;
}
public BigDecimal getRate() {
return rate;
}
public void setRate(BigDecimal rate) {
this.rate = rate;
}
public BigDecimal getUnit() {
return unit;
}
public void setUnit(BigDecimal unit) {
this.unit = unit;
}
}
can anyone help?? thanks in advance.