create table MainEntity ( id int8 not null, primary key (id) ); create sequence hibernate_sequence;