From 055abd95a4d9a0409cfa8f31a7e53fecb9889017 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Wed, 13 May 2020 14:18:49 +0200 Subject: [PATCH] Add withUser projection to account --- .../AccountWithUserProjection.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 backend/src/main/java/de/hft/geotime/timetrackaccount/AccountWithUserProjection.java diff --git a/backend/src/main/java/de/hft/geotime/timetrackaccount/AccountWithUserProjection.java b/backend/src/main/java/de/hft/geotime/timetrackaccount/AccountWithUserProjection.java new file mode 100644 index 0000000..d2f2f79 --- /dev/null +++ b/backend/src/main/java/de/hft/geotime/timetrackaccount/AccountWithUserProjection.java @@ -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(); + +}