public void setCraningCostDAO(final CraningCostDAO aDao) {
this.dao = aDao;
}
public BigDecimal findCostByCraningEnum(final Craningbasis craningEnum) {
CraningCost craningCost = dao.findByRuleId(craningEnum.getRuleId());
if (craningCost != null) {
return craningCost.getCostValue();
}
return null;
}