Are you using H2Dialect? Hibernate currently does not officially support H2's Oracle compatibility mode, but I believe using org.hibernate.dialect.OracleDialect should be enough to fix this specific issue.