下面的代码会出现org.nutz.dao.DaoException: Need non-arg constructor : class cn.sayyoo.house.constant.HouseFeatureEnum
这个错误,具体的代码在下面也不知道什么情况,求解答
private void insertHouseFeature(Room room) throws Exception {
List<HouseFeatureEnum> featureList = room.getFeatureList();
if (featureList != null && featureList.size() > 0) {
Sql sql = dao().sqls().create("deleteFeatureByRoomId");
sql.setParam("roomId", room.getId());
dao().execute(sql);
dao().fastInsert(featureList);
}
}
public enum HouseFeatureEnum {
WIFI,
FACE_SOUTH;
HouseFeatureEnum() {
}
}