Servlet Database Handlers

I am going to start developing a dynamic web application with Java (i.e. servlets and JSPs).
Obviously, I will need to store a database with all kinds of information (Users, etc.). My question is: is there a good library to save / store / retrieve from the database for such an application?
I do not mean JDBC, which is used to send queries and parsing results, but some kind of abstraction for saving and loading my object to / from the database.

I'm currently trying to develop some kind of common classes to handle these cases in django style (i.e. classes have a save() method), but since they are common, I suppose something must already exist.

+4
source share
1 answer

It looks like you're looking for a relational object mapping (ORM) tool. ORMs match rows in a table with objects in your code. In fact, what you used in Django is ORM.

Hibernate is one such ORM that allows you to describe how your Java objects should be displayed.

+5
source

All Articles