package com.royalrangers.model.achievement;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.royalrangers.model.BaseModel;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

@Getter
@Setter
@Entity
public class Task extends BaseModel {

    private String name;

    private String description;

    @JsonIgnore
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "test_id", nullable = true)
    private Test test;

}
@@ -105,36 +105,123 @@
 com.
-royalrangers.model.BaseModel
+fasterxml.jackson.annotation.JsonView;%0Aimport com.royalrangers.model.BaseModel;%0Aimport com.royalrangers.model.Views
 ;%0Aim
@@ -363,29 +363,107 @@
     
-private String name;%0A
+@JsonView(Views.Achievement.class)%0A    private String name;%0A%0A    @JsonView(Views.Achievement.class)
 %0A   

Add JsonView to name and description