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

allow Java records as embeddable types #400

Closed
gavinking opened this issue Apr 18, 2023 · 0 comments · Fixed by #379
Closed

allow Java records as embeddable types #400

gavinking opened this issue Apr 18, 2023 · 0 comments · Fixed by #379

Comments

@gavinking
Copy link
Contributor

Java records don't work well as entity types, but they are perfectly good embeddable types, and so we should bless their use in this context.

@lukasj lukasj linked a pull request Aug 4, 2023 that will close this issue
rfelcman added a commit to eclipse-ee4j/eclipselink that referenced this issue Jul 8, 2024
…bedded parts 2.0 (#2163)

Implementation plus unit test according jakartaee/persistence#379 jakartaee/persistence#400

There are two kind of usages in the entities:
- `@EmbeddedId` as (composite) primary key
- `@Embedded` as (composite) entity attribute

There is support for nested records.

Resolve review comments from #2155

Signed-off-by: Radek Felcman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant