Hibernate incorrecly registers BIGINT as corresponding to Java's BigInteger type.

Description

The JDBC type BIGINT, per the JDBC specification, corresponds to the Java type long. However, in dialect.java, BIGINT is registered as shown below. Most, if not all databases, use 64 bit integers for BIGINT.

Currently:
registerHibernateType( Types.BIGINT, StandardBasicTypes.BIG_INTEGER.getName() );

Expected:
registerHibernateType( Types.BIGINT, StandardBasicTypes.LONG.getName() );

Environment

All hibernate versions, all environments.

Assignee

Yoann Rodière

Reporter

Pedro Alvarado

Fix versions

backPortable

None

Suitable for new contributors

None

Requires Release Note

Affirmative

backportDecision

None

Components

Affects versions

Priority

Major
Configure