Stefan K.
Stefan K.

Reputation: 7851

Hibernate - change default sequence table name

I'm wondering if I can change the default name of the default table for sequences 'hibernate_sequences'? I don't want to specify a sequence generator each time I use one but would rather prefer to change the default name.

Upvotes: 3

Views: 2066

Answers (1)

Rohit
Rohit

Reputation: 2152

Use @TableGenerator annotation to give customized name along with @GeneratedValue annotation.

Upvotes: 5

Related Questions