Class InheritableDaoHelper<TT>

java.lang.Object
com.flowlogix.jeedao.InheritableDaoHelper<TT>
Type Parameters:
TT - Entity Type
All Implemented Interfaces:
Serializable

public class InheritableDaoHelper<TT> extends Object implements Serializable
Data Access Object pattern implementation that is meant to be inherited by the user's classes. This is an alternative to JPAFinder, which does not have requirements for inheritance. JPAFinder is the preferred method of implementing DAOs.

@Stateless
public class InheritedDAO extends InheritableDaoHelper<UserEntity> {
    @Inject
    EntityManager entityManager;

    @PostConstruct
    void init() {
        jpaFinder = new DaoHelper<>(() -> entityManager, UserEntity.class);
    }
}
See Also:
  • Field Details

  • Constructor Details

    • InheritableDaoHelper

      public InheritableDaoHelper()