java - Modify SQL query generated behind Spring Data REST projections -



java - Modify SQL query generated behind Spring Data REST projections -

edit : how maintain needed columns in select spring info rest projections?

spring info rest projections getting subset of columns links generated, query gets generated in behind still has columns in it.

how can projections created sql queries have columns in select in projection

i think can utilize "nested projections", let's say.

an example: resource a contains field bubi , resource b, has field foo, bar, zed.

you should create projection b list fields want:

@projection(name="reduced", types = b.class) public interface breduced { string foo; //exclude bar, instance int zed; }

then utilize projection in a's projection.

@projection(name="reduced", types = a.class) public interface areduced { int bubi; breduced b; }

have undestood well, or talking performance in sql query?

java spring spring-data spring-data-jpa spring-data-rest

Comments

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -