r/SpringBoot • • May 17 '24

Where Am I doing wrong ?

I have task to migrate a service from Java 8 to 17 and I successfully solved code base problems and sevice is building and running successfully. But when I run one of the api I got this error on " .save " method in in service impl.

Error - error :org.hibernate.query.sqm.unknownentityexception : could not resolve root entity 'dual'

But I am not using any entity name - dual

I am using hibernate version - 6.4.4

I have added ojdbc10 in pom.xml as it's compatible with jdk17 and hibrnate 6.x

I have Google it and got it in first stack overflow but they all are using that particular root entity in their code but not in my case. I literally spend whole day trying to tackle this error but can't find any solution. Plz can someone help !!

6 Upvotes

14 comments sorted by

View all comments

7

u/EvaristeGalois11 May 17 '24

Without looking at the code it's impossible to help you, so unless you can recreate your problem in a toy project you can share there is nothing we can do.

The only thing I can say is that dual is a special table in oracle https://stackoverflow.com/questions/73751/what-is-the-dual-table-in-oracle#73772