jakartaee / persistence

https://jakartaee.github.io/persistence/
Other
196 stars 58 forks source link

draft spec for record support #379

Closed gavinking closed 1 year ago

gavinking commented 2 years ago

Allows @IdClass and @Embeddable types to be records.

gavinking commented 1 year ago

records are compiled into static classes, so there is no reason to limit their usage to top-level definitions.

it would be also good to reword the restrictions that apply to entity classes are relaxed part to make it clear what is or is not applicable (probably enough to just remove this part)

I've made both these changes. I suppose this is ready to merge.