我有一个由现有端点使用的POJO,这个端点用POJO中的所有字段进行响应。我希望避免复制相同的POJO文件并删除我不需要的参数,有办法做到这一点吗?public class AgentChatStatus {
private List<AgentChat> chatRequests; //Object with less params on new endpoint
private List<AgentChat>
我有两门课:@JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, public class Client {@GeneratedValue(strategy = GenerationType.AUTO)private Long id;@OneToMany(mappedBy = "client"
我正在开发一个spring引导应用程序,使用Hibernate作为ORM,Jackson作为JSON序列化器。Class Student{ +Getter/Setter private List<Subject> subject; // List of subjects associated to that us