need to Add the following Annotations.
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
@NotNull
@Column(name = "EventPhaseID", unique = true, nullable = false)
Also keep the Identity Specification of The primary Key to YES in the MSSQL Database Table properties
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment