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.
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
will there be any difference with respect to the same class without the
valuedeclaration?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.