[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
] [
Newsgroup Home
]
[news.eclipse.rt.eclipselink] Re: DAO implementation: static?singleton?or instances?
From
:
hollosyt@xxxxxxxxx
(Tim Hollosy)
Date
: Tue, 21 Jul 2009 18:09:31 +0000 (UTC)
Newsgroups
:
eclipse.rt.eclipselink
Organization
: Eclipse
User-agent
: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
I use a single DAO for all my CRUD, then I don't have to implement the DAO each time.
It has methods that are templated like this:
public <T extends AbstractEntity> List<T> selectAll(Class<T> clazz) {
return (List<T>) JpaHelper.getEntityManager(entityManager).createQuery(null,clazz).getResultList()
}
Follow-Ups
:
[news.eclipse.rt.eclipselink] Re: DAO implementation: static?singleton?or instances?
From:
Enrico
References
:
[news.eclipse.rt.eclipselink] DAO implementation: static?singleton?or instances?
From:
Enrico
Prev by Date:
[news.eclipse.rt.eclipselink] Re: interfaces
Next by Date:
[news.eclipse.rt.eclipselink] Re: DAO implementation: static?singleton?or instances?
Previous by thread:
[news.eclipse.rt.eclipselink] DAO implementation: static?singleton?or instances?
Next by thread:
[news.eclipse.rt.eclipselink] Re: DAO implementation: static?singleton?or instances?
Index(es):
Date
Thread