Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Unverified Commit 923df729 authored by Alexandre Touret's avatar Alexandre Touret
Browse files

refactor: drop json attributes in Pet entity

parent a4ca4b17
No related branches found
No related tags found
No related merge requests found
......@@ -37,9 +37,6 @@ import org.springframework.beans.support.MutableSortDefinition;
import org.springframework.beans.support.PropertyComparator;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
/**
* Simple business object representing a pet.
......@@ -92,7 +89,7 @@ public class Pet extends NamedEntity {
public void setOwner(Owner owner) {
this.owner = owner;
}
@JsonIgnore
protected Set<Visit> getVisitsInternal() {
if (this.visits == null) {
this.visits = new HashSet<>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment