jpa注解
一个项目对应多个公司,用注解怎么写。谢谢。
------解决方案--------------------
@OneToMany(cascade = CascadeType.REMOVE, fetch = FetchType.LAZY)
@JoinTable(name = "t_ivr_callednumber", joinColumns = {@JoinColumn(name = "notification_id", referencedColumnName = "id")}, inverseJoinColumns = {@JoinColumn(name = "callednumber_id", referencedColumnName = "id")})