-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
HHH-19388 Process <database-object> in mapping.xml #10998
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
metadataSources.addInputStream( getClass().getResourceAsStream( "no-file-level-catalog-and-schema.hbm.xml" ) ); | ||
metadataSources.addInputStream( getClass().getResourceAsStream( "database-object-using-catalog-placeholder.hbm.xml" ) ); | ||
metadataSources.addInputStream( getClass().getResourceAsStream( "database-object-using-schema-placeholder.hbm.xml" ) ); | ||
metadataSources.addInputStream( getClass().getResourceAsStream( "database-object-using-catalog-placeholder.orm.xml" ) ); |
Check warning
Code scanning / CodeQL
Unsafe use of getResource Warning test
metadataSources.addInputStream( getClass().getResourceAsStream( "database-object-using-catalog-placeholder.hbm.xml" ) ); | ||
metadataSources.addInputStream( getClass().getResourceAsStream( "database-object-using-schema-placeholder.hbm.xml" ) ); | ||
metadataSources.addInputStream( getClass().getResourceAsStream( "database-object-using-catalog-placeholder.orm.xml" ) ); | ||
metadataSources.addInputStream( getClass().getResourceAsStream( "database-object-using-schema-placeholder.orm.xml" ) ); |
Check warning
Code scanning / CodeQL
Unsafe use of getResource Warning test
...rc/main/java/org/hibernate/boot/model/source/internal/hbm/AuxiliaryDatabaseObjectBinder.java
Outdated
Show resolved
Hide resolved
context.getBootstrapContext().getClassLoaderService() | ||
.classForName( databaseObjectRegistration.definition() ) | ||
.newInstance(); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
Class.newInstance
Pulled locally and applied some minor fix ups. Applied manually upstream. |
https://hibernate.atlassian.net/browse/HHH-19388
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.