Commit 6ab4f3bd by Juho Juopperi

Revert "add userId to placepojo (e.g. image is fetched with user and not eventuser id)"

This reverts commit 258923cbd7ebb8d377cf9958410b3aaf24423724.
1 parent 4da7ac3d
...@@ -44,7 +44,6 @@ public class PlacePojo { ...@@ -44,7 +44,6 @@ public class PlacePojo {
private String description; private String description;
private Integer reserverId; private Integer reserverId;
private Integer eventuserId; private Integer eventuserId;
private Integer userId;
public String getName() { public String getName() {
return name; return name;
...@@ -183,11 +182,4 @@ public class PlacePojo { ...@@ -183,11 +182,4 @@ public class PlacePojo {
this.eventuserId = eventuserId; this.eventuserId = eventuserId;
} }
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
} }
...@@ -102,9 +102,7 @@ public class PojoUtils { ...@@ -102,9 +102,7 @@ public class PojoUtils {
ret.setMapId(place.getMap().getId()); ret.setMapId(place.getMap().getId());
} }
if (place.getPlaceReserver() != null && place.getPlaceReserver().getUser() != null) { if (place.getPlaceReserver() != null && place.getPlaceReserver().getUser() != null) {
EventUser eventUser = place.getPlaceReserver().getUser(); ret.setEventuserId(place.getPlaceReserver().getUser().getId());
ret.setEventuserId(eventUser.getId());
ret.setUserId(eventUser.getUser().getId());
} }
return ret; return ret;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!