pessoal,
não entendo pq dá erro na linha:
Produto_filial produto_filial = (Produto_filial)criteria.uniqueResult();
public Produto_filial pesquisar (ProdutoFilialPK compositeId) throws HibernateException {
Long idProduto = compositeId.getProduto().getId_produto();
Long idFilial = compositeId.getFilial().getId_filial();
this.getSession().beginTransaction();
Criteria criteria = this.getSession().createCriteria(Produto_filial.class);
criteria.add(Restrictions.and(
Restrictions.eq("id_produto",idProduto),
Restrictions.eq("id_filial",idFilial)));
Produto_filial produto_filial = (Produto_filial)criteria.uniqueResult();
this.getSession().getTransaction().commit();
return produto_filial;
}
o erro:
java.lang.ArrayIndexOutOfBoundsException: 1
at org.hibernate.exception.NestableDelegate.getThrowable(NestableDelegate.java:228)
at org.hibernate.exception.NestableDelegate.getMessage(NestableDelegate.java:147)
at org.hibernate.exception.NestableRuntimeException.getMessage(NestableRuntimeException.java:158)
alguém tem ideia do que está acontecendo???

