I am also very interested in JDBC 3.0 and submitted a patch to support getGeneratedKeys. I have used that patch against DB2 and MySQL, which has some bulk but probably doesn't represent most databases. The patch is backward compatable with JDBC 2.0. For me it was more work to go around this issue and our databases are very large so doubling up I/O on inserts is hard to justify when a better solution exists. From Gavin's comment I should have pushed some of the common code up into the AbstractEntityPersister, which I can do right away if there is any possability that this will be committed.
http://opensource.atlassian.com/project ... key=HB-380