Class RecordPersistenceCapable

java.lang.Object
org.apache.openjpa.enhance.RecordPersistenceCapable
All Implemented Interfaces:
ManagedInstanceProvider, PersistenceCapable

public class RecordPersistenceCapable extends Object implements PersistenceCapable, ManagedInstanceProvider
Implementation of PersistenceCapable for Java record types. Records cannot be enhanced (they are final), so this class provides the PersistenceCapable contract using an internal value array and the record's canonical constructor for materialization.

JPA 3.2 allows records as embeddable classes. During loading, field values are collected in an internal array. When the managed instance is requested, the record is constructed via its canonical constructor.

Since:
4.2.0