Closed spb722 closed 3 years ago
As I can see you are currently trying to search an OnboardingInfo entity with a value from the Location entity. Normally you should be able to do this search if you had had a one to one relationship between the two. However, because of the one to many you cannot do this with a simple SQL query. Handling these use case are not in our current roadmap.
However, if you want an example query for your use case may be something like :
SELECT * from onboardinginfo o join location l on o.id = l.onboarding_id where l.addressline1 like 'puth%'
@luc-boussant : Is there anyway we can prioritise this requirement. I had a strong feeling one to many search is one of the common use case
Illegal attempt to dereference path source [null.location] of basic type the Model classes are Parent model
Child Model
while querying http://localhost:8080/search/params?search=location.addressLine1:puth*
I am getting the following error