View Single Post
  #2 (permalink)  
Old 05-07-2008, 05:05 PM
ibjava ibjava is offline
Member
 
Join Date: May 2008
Posts: 3
ibjava is on a distinguished road
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.
Reply With Quote