fix publisher

This commit is contained in:
Valentin CZERYBA 2023-01-09 22:22:53 +01:00
parent f6018542cd
commit 05ad21983f
2 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package com.covas.Entity;
import java.io.Serializable; import java.io.Serializable;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.util.Collection;
import java.util.List; import java.util.List;
import java.util.UUID; import java.util.UUID;
@ -16,6 +17,7 @@ import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne; import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries; import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery; import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.CascadeType; import javax.persistence.CascadeType;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;

View File

@ -155,6 +155,7 @@ public class PublisherRessources {
} }
} }
Response responseHttp = Response.status(status).build(); Response responseHttp = Response.status(status).build();
if (status.equals(Response.Status.OK)) { if (status.equals(Response.Status.OK)) {
responseHttp = Response.status(status).entity(new PublisherByUser(user.pseudo, user.publisher)) responseHttp = Response.status(status).entity(new PublisherByUser(user.pseudo, user.publisher))
.build(); .build();