I am newbie to Spring-data-rest. In my project instead of getting JSON instead of getting links while we make a REST call to the DB, i written the projections for repositories as follows. But for the name variable i assigned Tenant which is a table in my DB. But even i give any name to the name field it is still working as same. What actually name filed in projection defines.
@Projection(name="Tenant", types= Binary.class)
public interface BinaryProjection {
String getId();
String getUsername();
}
Aucun commentaire:
Enregistrer un commentaire