dao
JSF Web application -DAO layer with static methods
Hi I have a question about best practices vs safe programming in building a JSF Web Applicaiton. I have employee.xhtml page having backing Bean - EmployeeBean. All the variables that I declare in the[详细]
2023-02-17 23:22 分类:问答Which one is the efficient solution for the following problem?
I have a struts and hibernate project, From the action class, I need t开发者_如何学Co call the DAO, to get the data from the database.[详细]
2023-02-17 21:58 分类:问答Using a DAO on a Bean used by a Spring Scheduled Task
I\'m developing a web application using Struts2 + Spring, and now I\'m trying to add a scheduled task. I\'m using Spring\'s task scheduling to do so. In my applicationContext I have:[详细]
2023-02-17 21:51 分类:问答How to implement DAO in Scala?
I would like to implement DAO in Scala as follows: trait DAO[PK,-T,-Q] { // T is a \"value object\", PK is a pri开发者_如何学Pythonmary key, and Q is query parameters.[详细]
2023-02-17 16:53 分类:问答Spring Security 2.0.6 what calls the loadUserByName method of an UserDetailService
I\'m building a simple Sring MVC app. And now i\'m trying to add Spring security. I\'ve added a customUserDetailsService that uses a DAO to access a MySql database and get users.[详细]
2023-02-17 04:52 分类:问答Should DAO's validate the input
since DAO layer is typically responsible for accessing data from DB given certain input (like a user_id etc), should it concern itself with checking the validity of its input?[详细]
2023-02-16 03:50 分类:问答EasyMock and Ibatis
In my DAO layer I am doing all my database work by calling stored procedures. I was wondering has anyone been successful in testing their DAO layer using EasyMock?[详细]
2023-02-14 23:10 分类:问答How do I open an Access recordset using a value from another recordset
This should be obvious, but I am stumped. I am in Access 2007, and I am looping through records.I want to filter the second recordset on the first.[详细]
2023-02-14 14:21 分类:问答Using RecordsAffected-method in VBA causes error when the number exceeds approximately 90.000 records?
I\'m running an append-query in VBA (inside MS Access) that looks like the code below. When I use the RecordsAffected-method in VBA in order to keep track of how many records that have been inserted,[详细]
2023-02-13 22:58 分类:问答Spring Mvc Controller - problem with delete
i working in a j2ee project (pojo layer, Dao layer(hibernate), Service Layer(spring), View(spring mvc))[详细]
2023-02-13 13:18 分类:问答