Questions tagged [data-access-object]

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.

A data access object (DAO) is an object that provides an abstract interface to some type of database or persistence mechanism, providing some specific operations without exposing details of the database. It provides a mapping from application calls to the persistence layer.

Source: Wikipedia (retrieved version)

More details: - Core J2EE Patterns - Data Access Object

31 questions
-1
votes
1 answer

junit test with dao create and get id

I have this service that I need to create Unit test for: SomeObject obj = new SomeObject(); String objConfig = "...." obj.setField1("value1"); …
1 2
3