When i try to navigat to an endpoint i get tho following error
Type definition error: [simple type, class org.hibernate.proxy.pojo.bytebuddy.ByteBuddy
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
work for me very well. It doesn't miss any reference objects and resolve the problem.
In my case:
@Entity
@Table(name = "applications")
public class Application implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@NotBlank
@Size(max = 36, min = 36)
private String guid;
@NotBlank
@Size(max = 60)
private String name;
@Column(name = "refresh_delay")
private int refreshDelay;
@ManyToOne(fetch = LAZY)
@JoinColumn(name = "id_production", referencedColumnName = "id")
@JsonIgnoreProperties(value = {"applications", "hibernateLazyInitializer"})
private Production production;