|
sorry, i forget to show the code for getting Deposito in one id, here's my code:
public Deposito getDeposito(Long id) {
Deposito deposito = (Deposito) getHibernateTemplate().get(Deposito.class, id);
if (deposito == null) {
throw new ObjectRetrievalFailureException(Deposito.class, id);
}
return deposito;
}
Im not change it yet, but now I got trouble to get it with many PK.
|