element.setAttribute("code", code.toString());
return element;
}
public Llfc getLlfc(String code, Date date) throws HttpException {
Llfc llfc = (Llfc) Hiber
.session()
.createQuery(
"from Llfc llfc where llfc.dno = :dno and llfc.code = :code and llfc.validFrom <= :date and (llfc.validTo is null or llfc.validTo >= :date)")
.setEntity("dno", this).setInteger("code",
Integer.parseInt(code)).setTimestamp("date", date)