06 2021 档案
摘要:代码 @Entity public class Student { @Id private String id; @ManyToMany(mappedBy = "students") private List<Teacher> teachers; } @Entity public class Tea
阅读全文
摘要:案例 public class Robot{ @ManyToOne//(fetch=FetchType.LAZY)// @JoinColumn(name="robottype_id") private RobotType robotType; } 1.使用fetch会抛异常
阅读全文
摘要:案例 @Entity @Table(name = "robot") public class RobotEntity { @OneToMany//(orphanRemoval=true) @JoinColumn(name = "robot_id") private List<Material> ro
阅读全文