Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After upgrading to 13.22, classes adopting @Embeddable don't seem to be generated correctly #3216

Closed
lakxtxue opened this issue Sep 5, 2023 · 0 comments · Fixed by #3220
Closed
Assignees
Labels
Milestone

Comments

@lakxtxue
Copy link

lakxtxue commented Sep 5, 2023

Expected behavior

The program compiles successfully without errors

Actual behavior

The query bean is not generated correctly for the composite primary key class annotated with @embeddable?

Steps to reproduce

This problem will occur after upgrading to 13.22. I rolled querybean-generator back to 13.21 and the problem disappeared

@Embeddable
public class OAuthCodePK  {

    @AttributeOverride(name = "code", column = @Column(name = "CODE"))
    @Column(name = "CODE")
    private String code;    

    @AttributeOverride(name = "clientId", column = @Column(name = "CLIENT_ID"))
    @Column(name = "CLIENT_ID")
    private String clientId;  


    @AttributeOverride(name = "userId", column = @Column(name = "USER_ID"))
    @Column(name = "USER_ID")
    private String userId;
}
java: Package QOAuthCodePK does not exist
![image](https://github.com/ebean-orm/ebean/assets/4651283/94de885b-95df-4282-ba49-5b0a5c77aef8)
@lakxtxue lakxtxue changed the title 升级到 13.22 之后,采用了 @Embeddable 的类似乎没有正确生成 After upgrading to 13.22, classes adopting @Embeddable don't seem to be generated correctly Sep 5, 2023
rbygrave added a commit that referenced this issue Sep 11, 2023
… change)

Version 13.22.0 added a change to query bean generation that has an issue for
embedded beans. This fixes that issue.
@rbygrave rbygrave self-assigned this Sep 11, 2023
@rbygrave rbygrave added the bug label Sep 11, 2023
@rbygrave rbygrave added this to the 13.22.1 milestone Sep 11, 2023
rbygrave added a commit that referenced this issue Sep 11, 2023
#3216 - Fix querybean generation for @Embedded beans (fix for 13.22.0…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants