Problem with generate ID in Hibernate 6


The problem appeared after updating to Hibernate to 6 (from 5.6 to 6.2.0.CR3).
I have entity:

@Table(name = "message_queue")
public class MessageQueue {
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "message_queue_revision_generator")
    @SequenceGenerator(name = "message_queue_revision_generator", sequenceName = "message_queue_revision_seq", allocationSize = 1, schema = "chat")
    private Long revision;

    @Column(insertable = false, updatable = false)
    private long messageId;

    @Column(insertable = false, updatable = false)
    private long channelId;

            @JoinColumn(name = "channelId", referencedColumnName = "channel_id"),
            @JoinColumn(name = "messageId", referencedColumnName = "id")
    private ChannelMessage message;


@Table(name = "messages")
public class ChannelMessage extends ChannelMessageRaw {

    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "messages_id_generator")
    @SequenceGenerator(name = "messages_id_generator", sequenceName = "messages_id_seq", allocationSize = 1, schema = "chat")
    private long id;

    @ManyToOne(fetch = FetchType.LAZY)
    private ChatChannel channel;

And when the service starts, an error appears:

Caused by: org.hibernate.tuple.entity.CompositeValueGenerationException: Property of on-execution generated embeddable is not generated:
	at org.hibernate.tuple.entity.CompositeGeneratorBuilder.createCompositeOnExecutionGenerator( ~[hibernate-core-6.2.0.CR3.jar:6.2.0.CR3]
	at ~[hibernate-core-6.2.0.CR3.jar:6.2.0.CR3]
	at org.hibernate.tuple.entity.EntityMetamodel.buildGenerator( ~[hibernate-core-6.2.0.CR3.jar:6.2.0.CR3]
	at org.hibernate.tuple.entity.EntityMetamodel.<init>( ~[hibernate-core-6.2.0.CR3.jar:6.2.0.CR3]
	at org.hibernate.persister.entity.AbstractEntityPersister.<init>( ~[hibernate-core-6.2.0.CR3.jar:6.2.0.CR3]
	at org.hibernate.persister.entity.SingleTableEntityPersister.<init>( ~[hibernate-core-6.2.0.CR3.jar:6.2.0.CR3]

The error is thrown in CompositeGeneratorBuilder class in createCompositeOnExecutionGenerator method. Judging by the code, there is no generator for the id field, although everything is indicated in the annotations. And it is not clear what to do next. Can you advise please.

That looks like a bug. Please create an issue in the issue tracker( with a test case(hibernate-test-case-templates/ at main · hibernate/hibernate-test-case-templates · GitHub) that reproduces the issue.

Thank you.