Questions tagged [genericdao]
48 questions
0
votes
1 answer
Best practices for Spring Transactions and generic DAOs & Services
I work on a Java EE application with Spring and JPA (EclispeLink). We developed a user-friendly interface for administrating the database tables. As I know more about Spring and Transactions now, I decided to refactor my code to add better…
![](../../users/profiles/1375205.webp)
Coralie
- 107
- 2
- 17
0
votes
2 answers
GenericDAO and NoSuchBeanDefinitionException: No unique bean Spring 3.0
I'm using Spring 3.0 with a genericDAO. I have this:
public interface GenericDAO
...
@Repository("genericDAO")
public class GenericDAOImpl implements GenericDAO {
...
public interface A…
![](../../users/profiles/1463454.webp)
CalamarBicefalo
- 77
- 2
- 11
0
votes
1 answer
One generic business service layer for all controller in MVC
I create a service class which contain the following method
selectAll() return Obj Array
selectOne(); return Obj Array
insert(Obj); return int
delete(); return int
update(); return int
I want to make this class generic as Controller can pass any…
![](../../users/profiles/954579.webp)
Both FM
- 1,089
- 1
- 13
- 32