Steve Ebersole commented on Improvement HHH-7725

I messed up on the signature for release, it would look like:

public void release(Dialect dialect, JdbcConnectionAccess connectionAccess);

The idea is this:

  • prepare would get called as Configuration is building the SessionFactory (this will change in 5.0). If any non-temporary tables are needed, prepare could do 1 of 2 things:
    • register the tables it wants created with the Mappings to be picked up in SchemaExport, etc.
    • use the provided JdbcConnectionAccess to actually create the tables it wants
  • release would get called as the SessionFactory is shutting down. If the delegate chooses to create the tables itself in prepare here would be its chance to drop them if it wanted. If prepare registered tables with Mappings, it should not have anything to do here.
  • prepareForUse would be called just as we are about the execute the operation
  • releaseFromUse would be called just after we have executed the operation
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira