Add withUser projection to account

This commit is contained in:
Marcel Schwarz 2020-05-13 14:18:49 +02:00
parent 3a48734544
commit 055abd95a4

View File

@ -0,0 +1,17 @@
package de.hft.geotime.timetrackaccount;
import de.hft.geotime.user.TimetrackUser;
import org.springframework.data.rest.core.config.Projection;
@Projection(name = "withUser", types = TimetrackAccount.class)
public interface AccountWithUserProjection {
double getRevenue();
String getName();
String getDescription();
TimetrackUser getUser();
}