Skip to content
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

Get rid of Hibernate warnings for MonetaryAmount #213

Open
odrotbohm opened this issue Oct 5, 2018 · 2 comments
Open

Get rid of Hibernate warnings for MonetaryAmount #213

odrotbohm opened this issue Oct 5, 2018 · 2 comments
Labels
in: infrastructure Build related tasks etc. type: task General tasks

Comments

@odrotbohm
Copy link
Member

2018-10-05 09:42:21.084  WARN 8441 --- [  restartedMain] o.h.t.d.java.JavaTypeDescriptorRegistry  : HHH000481: Encountered Java type [interface javax.money.MonetaryAmount] for which we could not locate a JavaTypeDescriptor and which does not appear to implement equals and/or hashCode.  This can lead to significant performance problems when performing equality/dirty checking involving this Java type.  Consider registering a custom JavaTypeDescriptor or at least implementing equals/hashCode.
2018-10-05 09:42:21.088  WARN 8441 --- [  restartedMain] o.h.t.d.java.JavaTypeDescriptorRegistry  : HHH000481: Encountered Java type [interface javax.money.MonetaryAmount] for which we could not locate a JavaTypeDescriptor and which does not appear to implement equals and/or hashCode.  This can lead to significant performance problems when performing equality/dirty checking involving this Java type.  Consider registering a custom JavaTypeDescriptor or at least implementing equals/hashCode.
2018-10-05 09:42:21.088  WARN 8441 --- [  restartedMain] o.h.t.d.java.JavaTypeDescriptorRegistry  : HHH000481: Encountered Java type [interface javax.money.MonetaryAmount] for which we could not locate a JavaTypeDescriptor and which does not appear to implement equals and/or hashCode.  This can lead to significant performance problems when performing equality/dirty checking involving this Java type.  Consider registering a custom JavaTypeDescriptor or at least implementing equals/hashCode.
2018-10-05 09:42:21.089  WARN 8441 --- [  restartedMain] o.h.t.d.java.JavaTypeDescriptorRegistry  : HHH000481: Encountered Java type [interface javax.money.MonetaryAmount] for which we could not locate a JavaTypeDescriptor and which does not appear to implement equals and/or hashCode.  This can lead to significant performance problems when performing equality/dirty checking involving this Java type.  Consider registering a custom JavaTypeDescriptor or at least implementing equals/hashCode.

See this ticket in Hibernate.

@odrotbohm odrotbohm added this to the 7.1 milestone Oct 5, 2018
@martinmo martinmo modified the milestones: 7.1, 7.2 Dec 18, 2018
@odrotbohm odrotbohm removed this from the 7.2 milestone Sep 27, 2019
@odrotbohm odrotbohm added in: infrastructure Build related tasks etc. type: task General tasks labels Dec 16, 2019
@DagleAnderson
Copy link

DagleAnderson commented May 10, 2023

Hi @odrotbohm ! So , I've been trying handle with this issue today, but I didn't find any answer not even ways to solve this situiation. Actually , I found something about to implement a extension from JavaTypeDescrition but the MonetaryAmount is a interface class type. Did you get solve this issue for yourself? If you did, with you can send to me a e-mail to [email protected] for this solution. I appreciate your help , Thanks !

@odrotbohm
Copy link
Member Author

I don't think we can resolve this ourselves, as it's effectively HHH-10784.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: infrastructure Build related tasks etc. type: task General tasks
Projects
None yet
Development

No branches or pull requests

3 participants