Class RepositoryConstructor

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

public class RepositoryConstructor extends Object implements MetaAttribute
A general purpose constructor which accepts the session as an argument. This constructor is compatible with use via direct instantiation or CDI-style constructor injection. By contrast, DefaultConstructor is used to instantiate a repository which obtains its session using field injection. This class also takes care of adding the resource accessor method.