lukasz-antoniak/hibernate-core — comment on commit 7329b3892b90addf3888a91d7d26111073a57faf
File:  line 0
By sebersole:

You had asked on the mailing list about the service and specifically about access to the ServiceRegistry. Honestly ServiceRegistry access is not totally fleshed out yet in regards to hbm2ddl tools. And honestly, hbm2ddl tools need some major TLC.

What I would do for now is to not keep reference to the ServiceRegistry as a inst var on SchemaExport. Instead I would have ImportSqlCommandExtractor as the inst var and populate it from the various incoming sources as needed (defaulting to SingleLineSqlCommandExtractor). And then allow it to be set from the outside. That would follow the basic pattern used throughout the rest of SchemaExport and friends.