Top "Dao" questions

A Data Access Object (DAO), is a design pattern in object-oriented software design, creating an object that provides an abstract interface to some type of database or other persistence mechanism.

Data access object (DAO) in Java

I was going through a document and I came across a term called DAO. I found out that it is …

java dao
Where does the @Transactional annotation belong?

Should you place the @Transactional in the DAO classes and/or their methods or is it better to annotate the …

java spring annotations transactions dao
Junit test case for database insert method with DAO and web service

I am implementing a webservice based university management system. This system adds certain courses to database. here below is the …

java web-services junit dao testcase
Single DAO & generic CRUD methods (JPA/Hibernate + Spring)

Following my previous question, DAO and Service layers (JPA/Hibernate + Spring), I decided to use just a single DAO for …

java jpa crud dao genericdao
How to test DAO methods using Mockito?

I've started to discovered Mockito library and there is a question for which I didn't find the proper answer. If …

java unit-testing junit mockito dao
Enumerations in Hibernate

It is often useful to have a field in a DAO whose value comes from a Java enumeration. A typical …

java hibernate dao
Hibernate Delete Error: Batch Update Returned Unexpected Row Count

I wrote this method below that is suppose to delete a member record from the database. But when I use …

java hibernate methods dao
Spring + Hibernate : a different object with the same identifier value was already associated with the session

In my application, which uses Spring and Hibernate, I parse a CSV file and populate the db by calling handleRow() …

java hibernate spring dao
How do I implement a DAO manager using JDBC and connection pools?

My problem is as follows. I need a class that works as a single point to a database connection in …

java jdbc connection-pooling dao genericdao
How to insert "Entire" DAO recordset into a table with VBA

I have a DAO recordset that gets created fine and I can transfer the records from the set to a …

ms-access ms-access-2007 vba dao