Hi there,
In my little project I have a hierarchy of classes:
abstract User
|
|__ Administrator extends User
|__ Instructor extends User
|__ Student extends User
The User class is annotated like so:
Notice that I specifically state:
@Id @GeneratedValue(strategy = GenerationType.AUTO)
for the id variable.
One would think that when I ran hbm2ddl to create the schema the USERS table would have set the USER_ID column to auto increment:
USER_ID bigint generated by default as identity (start with 1)
but that isn't what happened. Instead I got:
create table USERS (
USER_ID bigint not null,
...
primary key (USER_ID)
);
What's up with that?
Please advise,
Alan