Skip to content

Conversation

@dreab8
Copy link
Member

@dreab8 dreab8 commented Dec 4, 2023

@dreab8 dreab8 requested review from beikov and sebersole December 4, 2023 13:43
Copy link
Member

@beikov beikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I'm missing something, but shouldn't the JAKARTA_JDBC_URL etc. be normalized like the other properties in org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl#normalizeDataAccess? I feel like this approach is tackling the problem from the wrong angle.

@dreab8
Copy link
Member Author

dreab8 commented Dec 7, 2023

In this case SessionFactoryBuilderImpl is used and not EntityManagerFactoryBuilderImpl.

@beikov
Copy link
Member

beikov commented Dec 7, 2023

IMO SessionFactoryBuilderImpl should normalize the settings similar to how EntityManagerFactoryBuilderImpl does it, so that the connection provider implementation don't have to take care of that.

@dreab8
Copy link
Member Author

dreab8 commented Dec 8, 2023

Unfortunately it's too late, the DriverManagerConnectionProviderImpl builds the ConnectionCreator passing the configurations values before the construction of the SessionFactory

@beikov
Copy link
Member

beikov commented Dec 8, 2023

IMO the org.hibernate.cfg.Configuration#buildSessionFactory() should do all of this config property merging into the standardServiceRegistryBuilder#getSettings() before the ServiceRegistry is built.

@beikov
Copy link
Member

beikov commented Dec 8, 2023

@beikov
Copy link
Member

beikov commented Dec 19, 2023

Superseded by #7613

@beikov beikov closed this Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants