Instead of using
@SkipForDialect
I used
@RequiresDialectFeature( value = DialectChecks.SupportsIdentityColumns.class )