Actually for Oracle Hibernate would not use the form `prepareStatement(String sql, int autoGeneratedKeys)`, instead it would use `prepareStatement(String sql, String columnNames[])`.  But even then, iirc, there was a problem as Hibernate would pass in the column names in a way that Oracle did not like.  

So either fixing that or using the `prepareStatement(String sql, int columnIndexes[])` form would be great.

Still not sure what bearing that all has on the question Brett posed here though...