Hello I am trying to make a table in MySQL using Spring Boot and JPA and I am trying to make one of the columns in the table be a Java Class aka a JSON object is there any way I could do this and is there any examples or documentation for this solution.
Example of Table that I made
import com.project.something.here.Userdata
@Entity
@Table(name = "User")
public class Exercises {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private String id;
@Column(name = "user_name")
private String username;
@Column(name = "user_description")
private String userdescription;
@Column(name = "user_link")
private String userlink;
//here is where I am trying to set one of the columns as a Java class or a JSON object.
private Userdata userdata;