@IdGeneratorType issues with @EmbeddedId

Hello there,

In my project I am using hibernate 6.6.18, I wanted to migrate from deprecated @GenericGenerator to recommended @IdGeneratorType. New annotation works fine with simple fields, but I wanted to use it on field that is EmbeddedId. Everything worked fine with @GenericGenerator but when using @IdGeneratorType then logic inside my custom generator is not executed.

Am I right that this new annotation just doesn’t work with embedded ids?

Looking forward to your insights.

Best regards,
Filip

Please share how you’re trying to use it.