import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
- @Column(name = "notification_ID", length = 11, nullable = false, columnDefinition = "int(11) AUTO_INCREMENT")
+ @Column(name = "notification_ID", length = 11, nullable = false)
@Digits(integer = 11, fraction = 0)
private Long notificationID;
@Column(name = "is_for_online_users", length = 1, columnDefinition = "char(1) default 'N'")
@Digits(integer = 11, fraction = 0)
private Long notificationID;
@Column(name = "is_for_online_users", length = 1, columnDefinition = "char(1) default 'N'")
@OneToMany(
targetEntity = EpUserNotification.class,
mappedBy = "notificationId",
cascade = CascadeType.ALL,
fetch = FetchType.LAZY
)
@OneToMany(
targetEntity = EpUserNotification.class,
mappedBy = "notificationId",
cascade = CascadeType.ALL,
fetch = FetchType.LAZY
)