how to solve Could not write JSON: Infinite recursion (StackOverflowError)
// Business Object 1:
@Entity
@Table(name = "ta_trainee", uniqueConstraints = {@UniqueConstraint(columnNames = {"id"})})
public class Trainee extends BusinessObject {
@OneToMany(mappedBy = "trainee", fetch = FetchType.EAGER, cascade = CascadeType.ALL)
@Column(nullable = true)
@JsonManagedReference
private Set<BodyStat> bodyStats;
// Business Object 2:
@Entity
@Table(name = "ta_bodystat", uniqueConstraints = {@UniqueConstraint(columnNames = {"id"})})
public class BodyStat extends BusinessObject {
@ManyToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
@JoinColumn(name="trainee_fk")
@JsonBackReference
private Trainee trainee;
Also in JavaScript:
- how to create a server in node js
- datepicker in react
- get multiple checkbox value in javascript
- how to disable menu bar in browser using javascript
- javascript check if key exists in object
- js maths
- angular list contains property
- javascript ascending and descending
- how to write a json in r
- javascript sort array of object by property
- refresh data after some time angular
- how to find out which version of React
- mlutiple css jquery
- moment for react
- how to implement a promise with daisy chaining in angular
- react overflow scroll
- file origin does not match viewer's pdf.js
- javascript typewriter effect
- dataset js
- split a message js
- node.js express
- comments in js
- react native button
- how to run nextjs in another port