The dao tag has no wiki summary.
2
votes
3answers
160 views
Does 'consider returning Null Object' apply to a DAO read method?
I was looking for an answer to the question of what the dao should return when a search end up to be for a nn entity that does not exist.
There are some generic previous questions related to ...
0
votes
0answers
47 views
DAO Design with Child Objects
If I have objects that represent a hierarchy of relationships. For example:
Person
Spouse
Spouse Contact
Spouse Address
...
1
vote
1answer
115 views
Using a DAO to abstract our ORM from the rest of the application
We're using MySQL with Sequelize.js as the ORM.
What we're wondering is whether a DOA layer of abstraction is worthwhile. Here are our options:
To use the Sequelize models throughout the ...
3
votes
2answers
158 views
java classes and database queries
Can someone please explain the best way to solve this problem.
Suppose I have three classes
Person
Venue
Vehicle
I have a DAO method that needs to return some or all of these attributes from each ...
4
votes
3answers
362 views
SQL RDBMS : one query or multiple calls
After looking around the internet, I decided to create DAOs that returned objects (POJOs) to the calling business logic function/method.
For example: a Customer object with a Address reference would ...
0
votes
3answers
1k views
In MVC , DAO should be called from Controller or Model
I have seen various arguments against the DAO being called from the Controller class directly and also the DAO from the Model class.Infact I personally feel that if we are following the MVC pattern , ...
0
votes
3answers
274 views
Reuse the data CRUD methods in data access layer, but they are updated too quickly
I agree that we should put CRUD methods in a data access layer, However, in my current project I have some issues.
It is a legacy system, and there are quite a lot CRUD methods in some concrete ...
5
votes
2answers
937 views
How to manage 2 DAO methods in a single transaction?
In an interview someone asked me : How do we manage 2 transactional/dao methods in a single transaction. Desired capabilities:
If anyone of them fails we need to rollback both methods.
Both of the ...
2
votes
2answers
222 views
Replacing dao layer
I am developing a series of webservices (based on spring and spring mvc).
For the first time in my dev career I do plan on replacing the dao layer in the future(I have always seen it mentioned but ...
4
votes
1answer
414 views
DAO/Webservice Consumption in Web Application
I am currently working on converting a "legacy" web-based (Coldfusion) application from single data source (MSSQL database) to multi-tier OOP.
In my current system there is a read/write database with ...
0
votes
1answer
28 views
Users and roles: Where to put queryUsersWithRole()?
I have two model classes User and Role and two managers/DAOs (UserManager and RoleManager) plus a method which gives me all users with a certain role (List<User> getUsersWithRole(Role)).
In ...
5
votes
4answers
1k views
Are there any real benifits to a DAO layer?
When I first started using Hibernate I heard about all the joy of using a DAO layer. Initially it made sense for my problem: I was going to experiment with Hibernate and later experiment with NoSQL ...