All Questions
3 questions
3
votes
1
answer
139
views
Future/Promise objects in Controllers - Best practice - MVC [closed]
I was going through some articles related to Futures and Callables today and was thinking about the best practices when working in an MVC based environment.
I was wondering, should one be creating ...
2
votes
1
answer
221
views
Should the Service interface not extend the DAO?
I'm writing the service layer for my DAO and I've made it extend the DAO interface. It looks a bit like this:
public interface FooDAO {
Foo get(long id);
boolean update(Foo foo);
These two ...
3
votes
1
answer
636
views
Writing decision statement on controller layer
We are developing a REST application based on an MVC architecture.
The service layer is returning Optional<T> where T could be any class.
So on the controller layer there is a conditional ...