Skip to content

Commit

Permalink
clean up the constructor of SessionFactoryImpl
Browse files Browse the repository at this point in the history
this was a really awful mess!
  • Loading branch information
gavinking committed Dec 27, 2022
1 parent b0479c5 commit c86539b
Show file tree
Hide file tree
Showing 3 changed files with 285 additions and 232 deletions.
Expand Up @@ -36,14 +36,12 @@ public class EventEngine {

private final CallbackRegistry callbackRegistry;

public EventEngine(
MetadataImplementor mappings,
SessionFactoryImplementor sessionFactory) {
public EventEngine(MetadataImplementor mappings, SessionFactoryImplementor sessionFactory) {

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// resolve (JPA) callback handlers

this.callbackRegistry = CallbacksFactory.buildCallbackRegistry( sessionFactory.getSessionFactoryOptions(),
callbackRegistry = CallbacksFactory.buildCallbackRegistry( sessionFactory.getSessionFactoryOptions(),
sessionFactory.getServiceRegistry(), mappings.getEntityBindings() );


Expand Down

0 comments on commit c86539b

Please sign in to comment.