Bulk insertion with assigned identifiers

Description

supportsIdGenWithBulkInsertion method of HqlSqlWalker explicitly checks if the id generator is either SequenceGenerator or PostInsertIdentifierGenerator, I think this could be extended to include Assigned id generator, attached is the patch for that

Environment

latest hibernate, but tracing this since batch processing inception

Activity

Show:
Zoran Regvart
May 25, 2011, 11:23 AM

In my case it would be very beneficial if this was supported from 3.5 onwards, to help the migration to newer versions of hibernate – so yes if it's possible apply this to 3.6 and 4.0 versions aswel.

thanks!

Andrei Badea
July 7, 2011, 6:16 PM

Probably better to fix instead. Zoran, that would fix your problem too, right?

Zoran Regvart
July 7, 2011, 10:56 PM

I've applied the patch given in to the fresh copy of the current git repository (4.0) and tested with unit test given in the patch here – works just fine. So whatever suites the hibernate developers / community better.

Emmanuel Bernard
October 19, 2011, 11:55 AM

Fixed by

Brett Meyer
March 7, 2014, 10:08 PM

Bulk closing tickets resolved in released versions

Assignee

Emmanuel Bernard

Reporter

Zoran Regvart

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure