IdClass with GeneratedValue(Identity) matching issue

@IdClass(EntityId.class)
class Entity {
    
    @Id
    @GeneratedValue(strategy = GenerationType.Identity)
    private Long id;

    @Id
    private LocalDate baseDt;
    ....
}

class EntityId {
    private Long id;
    private LocalDate baseDt;
}

with MySQL8

It should be added ‘auto increment’ to id, but it added to baseDt.
When I try to change baseDt’s type to Long and id’s field name to aId, then it work properly.

When debug it, baseDt column is treated as first column. How to fix it??

Please try to create a reproducer with our test case template and if you are able to reproduce the issue, create a bug ticket in our issue tracker and attach that reproducer.