Sequence generator for idbag ignores generator parameters

Description

If we have a mapping for collection with sequence generator and sequence name parameter

Hibernate ignores the sequence_name parameter.

I guess the issue is in the method org.hibernate.boot.model.source.internal.hbm.ModelBinder.AbstractPluralAttributeSecondPass.bindCollectionIdentifier() which uses org.hibernate.boot.model.source.spi.CollectionIdSource to create org.hibernate.boot.model.IdentifierGeneratorDefinition and the CollectionIdSource only has generator's name.

The attachment contains failing test case. Connection properties for the Oracle database should be set in file '/src/test/resources/unitils-local.properties'.

This feature worked correctly with Hibernate 4.x.

Attachments

1

Activity

Show:

Former user June 2, 2016 at 3:06 AM

Fixed in master, 5.1, and 5.0.

Former user June 2, 2016 at 3:03 AM

The following commit says that it was for HHH-10372, when it should have said it was for this jira (HHH-10373):
https://github.com/hibernate/hibernate-orm/commit/030f442f3cd894ff9defff62ac3b0eecc39d9d83 .

Steve Ebersole June 1, 2016 at 4:46 AM

I applied 's PR upstream to master.

Andrea Boriero April 19, 2016 at 12:57 PM

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Created December 11, 2015 at 10:04 AM
Updated June 2, 2016 at 3:50 AM
Resolved June 2, 2016 at 3:06 AM