Some tests fails because oracle12c doesn't support single column identity table

Description

Some tests fails on oracle when entity has no columns except identity one

MapKeyAttributeConverterTest.java#L239

generates INSERT statement

which fails on Oracle12c with ORA-00936: missing expression. The same SQL passes on Sybase. MS SQL Server has different SQL insert into map_entity default values.

At least these tests are affected:
org.hibernate.test.converter.map.MapKeyAttributeConverterTest

  • could be changed to use GenerationType.AUTO

  • or added column to entity (the @RequiresDialectFeature should be added)

org.hibernate.id.FlushIdGenTest

Workaround is to add some column to entity

Environment

oracle12c
org.hibernate.dialect.Oracle12cDialect

Activity

Show:
Gail Badner
March 9, 2017, 12:02 AM

This got fixed in 5.1 and master by HHH-10689.

Out of Date

Assignee

Gail Badner

Reporter

Martin Simka

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure