Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Petar Tahchiev opened DATAREST-385 and commented
Hello,
I'm having the following MapedSuperclass which is a base class for all my entities:
MapedSuperclass
@MappedSuperclass public abstract class AbstractEntityModel { @Column(name = "id", nullable = false) private String uid = java.util.UUID.randomUUID().toString(); }
and I have created a Projection for it in the same package:
Projection
@Projection(name = "basic", types = { AbstractEntityModel.class }) public interface BasicEntityModelProjection { public String getUid(); }
Unfortunately when I navigate to the /rest url I don't see the projection in the generated URLs of my entities
/rest
Backported to: 2.2.1 (Evans SR1)
The text was updated successfully, but these errors were encountered:
Oliver Drotbohm commented
Is it the ?projection missing only or are you saying that the projection also not getting applied, when you submit the parameter nonetheless
?projection
Sorry, something went wrong.
Petar Tahchiev commented
Hi Oliver,
I don't see it in the json response, but even if I provide the projection like this: http://localhost:8111/storefront/rest/category?projection=basic it still returns the whole json category
http://localhost:8111/storefront/rest/category?projection=basic
Tested with the latest SNAPSHOT it works like a charm :)
odrotbohm
No branches or pull requests
spring-projects-issues commentedSep 11, 2014
Petar Tahchiev opened DATAREST-385 and commented
Hello,
I'm having the following
MapedSuperclass
which is a base class for all my entities:and I have created a
Projection
for it in the same package:Unfortunately when I navigate to the
/rest
url I don't see the projection in the generated URLs of my entitiesBackported to: 2.2.1 (Evans SR1)
The text was updated successfully, but these errors were encountered: