Why is Hibernate running an update of my foo object when I excute a findBy on my derp table? I am not updating my foo object.
EJB:
While(aFewTimes){
foosList = fooHome.findByFooId(new BigDecimal(fooId()), session);
Iterator foosIter = foosList.iterator();
while (foosList.hasNext()) {
List xxxxList = xxxxxHome.findByDerpId(new BigDecimal(derpId), session);
}
}
DerpHome:
public List findByDerpId(BigDecimal derpId, Session session){
Criteria crit = session.createCriteria(
XXXXXXXXXXX.Derp.class).add(
Restrictions.eq("derpId", derpId));
List awardList = crit.list();
return awardList;
}
First Excute of findByDerpId: select this_.derpicord as derpy_686_0_ from derp this_ where this_.derps=?
Second Excute of findByDerpId: Hibernate: update foo set foo_Column=?, foo_COLUMN_2=? where foo_ID=?
I do not have permissions to update the table, nor did i request to do this.
[3/8/07 13:20:46:319 EST] 00000010 JDBCException W org.hibernate.util.JDBCExceptionReporter logExceptions SQL Error: 1031, SQLState: 42000
[3/8/07 13:20:46:319 EST] 00000010 JDBCException E org.hibernate.util.JDBCExceptionReporter logExceptions ORA-01031: insufficient privileges
Any ideas why this is happening?
Thanks!
|