I have the following:
service class:
Dao implementation class:Code:... PaymentPK paymentPk = new PaymentPK(getId1(), getId2);// This is working fine and returning the correct values Payment payment = paymentDao.getPayment(paymentPk);//As in the Hibernate in Action examples, pg. 335 ...
I almost sure that I shouldn't receive a class as a parameter, but I have been following the example of the book and also did some researches but I didn't find other way out to send the parameters. Thanks.Code:.... public Payment getPayment(PaymentPK id) { return (Payment)this.getHibernateTemplate().load(Payment.class, id); } ...


Reply With Quote