Hi Rob,
I'm using SQL Server 2008 for the annotations below. I get the error at the bottom: "auto_increment" is not support. Is there any fix/workaround?
Thanks.
@Entity(name="data_change_event")
public class DataChangeEvent {
@Id //signifies the primary key
@Column(name = "ID", nullable = false)
@GeneratedValue(strategy = GenerationType.AUTO)
private long id;
.............
}
Error: Error executing stmt[create table data_change_event (ID numeric(19) not null auto_increment,TID varchar(40) not null,FID varchar(40) not null,VALUE varchar(4000) not null,TIME datetime not null,constraint pk_data_change_event primary key (ID))] error[Incorrect syntax near 'auto_increment'.]