After a few hours of searching with Google trying to understand how to do bulk inserts I can see that there is very little good information, where good means clear and useful. Does anyone have any good references on this subject?
As far as I can tell my problem is that my entities use an identity identifier generator so insert batching is disabled.
Also, the restrictive form of the INSERT INTO ... SELECT ... for HQL is not particularly useful.
Are there any useful ways to do bulk insert via hibernate where entities do have an identity identifier generator?
Would using the StatelessSession interface be the way to do this?
Cheers, Eric
|