Closed pkernevez closed 2 years ago
Thanks for reporting the issue. Would you mind providing the signature for that findFirstByFxRateBaseCurrencyAndFxRateQuoteCurrencyAndDateLessThanEqualOrderByDateDesc
method?
I want to see what it returns so that I can figure out the problem.
Yes it's:
Optional<CurrencyExchangeRateHistoryEntity> findFirstByFxRateBaseCurrencyAndFxRateQuoteCurrencyAndDateLessThanEqualOrderByDateDesc(
CurrencyEntity baseCurrency,
CurrencyEntity quoteCurrency,
LocalDate date);
Thanks. I'll try to replicate it.
@pkernevez I have a few questions.
CurrencyExchangeRateHistoryEntity
mapped as an entity, right?fxRateBaseCurrency
, fxRateQuoteCurrency
, and date
?Or are they derived using @Formula
or something like that?
Can you add the entity mapping for the CurrencyExchangeRateHistoryEntity
as I can't figure out why one of the properties could not be found in the EntityPersister
while it was sued by the query?
I've question about hibernate behavior and I'm preparing a simple project for the forum, I will try to reproduce this behavior in it then share it here.
Thanks. In the meantime, I'll add some extra checks for this as I could replicate something similar with a composite id.
Got a similar issue.
@s-jepsen The fix is in the making. I'll release a new patch version next week.
Do you still need additional information ?
@pkernevez It's fine at the moment. I'll let you know when the release is ready so that you can test it. I'm now working on fixing it for all verisons.
Fixed.
Version 2.6.1
This happen when calling: `repository.findFirstByFxRateBaseCurrencyAndFxRateQuoteCurrencyAndDateLessThanEqualOrderByDateDesc(CurrencyEntity1, CurrencyEntity2, LocalDate) I don't found the source code for this class, so I can't do investigation.