Class InheritableDaoHelper<TT>
java.lang.Object
com.flowlogix.jeedao.InheritableDaoHelper<TT>
- Type Parameters:
TT- Entity Type
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
jpaFinder
-
-
Constructor Details
-
InheritableDaoHelper
public InheritableDaoHelper()
-