Class RecordInstantiator

java.lang.Object
org.jmolecules.hibernate.RecordInstantiator
All Implemented Interfaces:
org.hibernate.metamodel.spi.EmbeddableInstantiator, org.hibernate.metamodel.spi.Instantiator

public class RecordInstantiator extends Object implements org.hibernate.metamodel.spi.EmbeddableInstantiator
Hibernate 6 specific EmbeddableInstantiator that inspects a Record for its RecordComponents to assemble instances of it in instantiate(Supplier, SessionFactoryImplementor). To use it directly, declare a subclass of it invoking RecordInstantiator's constructor with the record type at hand and use that declared types via EmbeddableInstantiator on the record type.
Author:
Oliver Drotbohm