-
-
Couldn't load subscription status.
- Fork 3.7k
HHH 14241 Support ImplicitNamingStrategyComponentPathImpl with IdClass #3583
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally I am not a fan of processing Strings that are the result of other String processing.
E.g. here you allow a recursive call to continue building a String(Builder/Buffer). You then return that buffer in full and perform a sub-string on it. I think a better solution would be to handle this within the #process method instead
|
@sebersole in this particular case is it not better in terms ofr performance to try the replacement just once in the |
|
@dreab8 Fair point. But unless I am mistaken, these only ever appear at the start of a path. So in In fact, I'd change that like: I think that will be more efficient, but cannot say for sure I guess |
|
Either way, that's just a matter of timing. Good job finding the problem and solution @jrenaat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to remove the request for changes. As Andrea points out, the performance difference is probably not worth requiring a change
Ok, some irony here @sebersole ... ;DD |
|
@sebersole I think your idea of checking @jrenaat really good job 👍 |
|
@dreab8 You can remove the following block now too: |
...e/src/main/java/org/hibernate/boot/model/naming/ImplicitNamingStrategyComponentPathImpl.java
Outdated
Show resolved
Hide resolved
hibernate-core/src/test/java/org/hibernate/id/idclass/IdClassNamingStrategyTest.java
Outdated
Show resolved
Hide resolved
hibernate-core/src/test/java/org/hibernate/id/idclass/IdClassNamingStrategyTest.java
Outdated
Show resolved
Hide resolved
hibernate-core/src/test/java/org/hibernate/id/idclass/MyEntity.java
Outdated
Show resolved
Hide resolved
hibernate-core/src/test/java/org/hibernate/id/idclass/MyEntityId.java
Outdated
Show resolved
Hide resolved
...e/src/main/java/org/hibernate/boot/model/naming/ImplicitNamingStrategyComponentPathImpl.java
Outdated
Show resolved
Hide resolved
|
@jrenaat you enjoy the luxury to get @sebersole 's attention. My others would envy you a lot (including me), :). |
Sorry Nathan, I have been taking a little break from 6.0 dev for the past 2 weeks or so to work on some Gradle and Quarkus stuff. I'll get back to your commits :) |
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
I'm blackmailing him ;) |
No description provided.