Iβm a little tired of using JSON / Rest services recently and manually typing methods on the server that perform basic CRUD operations in the database.
What I would like to do is in javascript (ajax based applications) do something like form
var allStudents = students.getAllStudents(); // returns all items of the students table var student = new student(); student.name = "Joe"; student.address = "123 Sesame st"; students.add(student); // commits it to the students table var student = students.getStudentById(57);
Now, like any ORM, all these methods will be automated / written for me.
Also note that I'm not saying that Javascript should talk directly to the database. This is still done by Restful calls (backstage on the server). But I just want these gross operations to be automated and transparent to me, so I donβt need to manually write them on the server.
Do you guys know any framework that would help achieve this?
My main backend is Java / Spring3MVC. But I would also like to hear ideas that Node.js can possibly use.
source share