Class DefaultConstructor

java.lang.Object
org.hibernate.processor.annotation.DefaultConstructor
All Implemented Interfaces:
MetaAttribute

public class DefaultConstructor extends Object implements MetaAttribute
Used by the container to instantiate a Jakarta Data repository. This is a constructor with no parameters, used to instantiate a repository which then uses field injection to obtain its dependencies. By contrast, a RepositoryConstructor has a parameter which accepts the session as an argument, allowing direct instantiation or constructor injection. This class is only needed because @PersistenceUnit is incompatible with CDI-style constructor injection.