Hi Deepak,
I was thinking about your two approaches regarding DAO for android client.
Using dependency injection to create those domain classes makes sense and I
need to do more reading about dependency injection
Regarding your second approach, having a generic DAO class and using
methods like GenericDao.getEntity("Student").getData("getPassedStudents")
leads to a problem I think. Basically what is the return type of this
method? It should be a set of Student entities. But we don't have a Student
class in our application. As a solution we can use a Hashmap like thing to
return attribute name and value pairs. But I'm not sure about the
applicability of it because attributes of Student class may have complex
objects.2013/4/14 Deepak Krishnan <[email protected]> > 6:53 AM me: Hi Deepak. If you are free I'm available on chat. > -- Regards W.Dimuthu Upeksha Undergraduate Department of Computer Science And Engineering University of Moratuwa, Sri Lanka
