If your sequence optimizer is HiLo, then there is a known bug as reported here: https://hibernate.atlassian.net/browse/HHH-13783
Otherwise, you might share the same issue with HHH-13676 Open . Not sure whether it is a bug or a feature, though.