Forums Register Login

[JPA] EJBQL query returns replicated result of same record

+Pie Number of slices to send: Send
Hi all

this is my scenario:



So i have a NamedQuery on top of Car entity:




In my database I have only one car which have CAR_DESC = 'MONOVOLUME',but query return the same replicated result sixteen times!

I can't see any error in my code,can someone help me?

Thank you!
Antonio
+Pie Number of slices to send: Send
Why are you not using carTypeId as a join condition?
+Pie Number of slices to send: Send
What is the SQL generated?
We don't have time to be charming! Quick, read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1028 times.
Similar Threads
Loop Problems
Retrieving "DiscriminatorColumn" value when querying an object
[JPQL] UNION
Hibernate: Can someone verify my mapping configuration?
Abstract class example
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 02:30:10.