| import javax.persistence.Column; |
| import javax.persistence.Entity; |
| import javax.persistence.FetchType; |
| import javax.persistence.Id; |
| import javax.persistence.JoinColumn; |
| import javax.persistence.ManyToOne; |
| import javax.persistence.Table; |
| @Table(name = "BegDetail") |
| public class BegInfoDetail { |
| @Column(name = "beg_id", length = 64, nullable = false) |
| @Column(name = "user_id", length = 36, nullable = false) |
| @Column(name = "Info", nullable = false, columnDefinition = "TEXT") |
| @ManyToOne(fetch = FetchType.LAZY) |
| @JoinColumn(name = "user_id", insertable = false, updatable = false) |
| public BegInfoDetail() {} |
| public BegInfoDetail(String begId, String userId, String info) { |