Skip to content

Value types in JPA #1164

Description

@nlisker

Value Objects have been integrated into Java 28 in preview mode. Is there any bearing on JPA with regard to value objects that needs to be documented or implemented in the future? A lot of the Basic types will be converted to value objects.

For example, if I declare

value class Pages {

    private long pages;  // implicitly final
}

will there be any difference with respect to the same class without the value declaration?

It will be some time before value types leave preview, but it's good to have some foresight for JPA/JakartaEE because their releases are less frequent than Java's.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions