Precision and scale are reversed when using decimal as element in map

Description

Using the follwing mapping will swap precision and scale:

<map name="decimals">
<key column="id" />
<map-key type="int" column="idx" />
<element type="big_decimal" column="value" precision="28" scale="16" />
</map>

Example for schema update:
create table xxxx (id integer, idx integer, value decimal(16,28), primary key (id, idx))

This is caused by a bug in org.hibernate.boot.model.source.internal.hbm.PluralAttributeElementSourceBasicImpl that send precision as scale and vice versa to Helper.interpretSizeSource.

Activity

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created November 30, 2015 at 11:44 AM
Updated December 17, 2015 at 2:54 AM
Resolved December 7, 2015 at 10:28 AM

Flag notifications