1

There is a Customer object and an Address object @Embedded inside of the Customer object. Address has the field USState and Customer has the field name.

When one does customers?name=Bob an Example object is constructed new Customer("name", null, null) but for customers?USState=IL the wrong Example object is constructed: new Customer(null, null, null) instead of new Customer(null, null, new Address(null, null, "IL", null)).

How does one persuade Spring Boot to recognize URL queries of properties of @Embedded objects, assuming the field names of Address do not collide with any of the field names of Customer?

1

1 Answer 1

2

try with customers?addressUSState=IL considering that your Address object on Customer object has a field with name address.

Sign up to request clarification or add additional context in comments.

3 Comments

customers?address.USState=IL does give the desired result, but there ought to be a way to get rid of the address
what technology of spring boot you use? spring-webflow?
spring-boot-starter-web

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.