This is a single DAO java class, this generic class can serve all your mapped database tables
this class is developed using HQL hibernate query language.
supported operations are :
1.get all.
2.get on condition.
a.attribute = value
b.attribute like value.
c.attribute > | < value.
d.attibute in (values).
2.insert to table.
3.orderby attribute , dir(asc or desc).
4.update record.
5.delete record.
usage:
1.download the files (DAO+Condtition).java.
2.add the hibernate library to your project class path.
3.configure your hibernate and map your class using the .hbm.xml file
4.create entities from your database table.
5.download Gson library.