I’m designing a small JavaEE web application… I have a PostgreSQL database with nearly 10 tables….. I have Activiti handling Workflow….
I thought Spring MVC and hibernate are good fit for my requirement.
But some one asked, is Hibernate suitable for my use case? Is it too heavy? How to choose that which ORM would be feasible for a web application?
Feel free to also suggest better solution 🙂
Thanks
—-UPDATE———
- The application of course will grow and add more tables in the future.
- I won’t use DDD.
In brief:
No
But also perhaps…
Hibernate is useful if it is a new project without a database a schema to jam into hibernate. It allows to abstract the database away and think in terms of objects. And get you up an running quickly. However it seems your project is already up and running so these benefits are void.
Hibernate is mostly in the way when the project grows, especially if the schema grows.
Hibernate is not helpful if you intend to go DDD and heavy domain objects as Hibernate prefers dumb pojo domain models.
If you already know you will stay with PostgreSQL then ORMs benefit of being database provider agnostic is pointless.