Using Hibernate for Existing Database

前端 未结 4 2025
隐瞒了意图╮
隐瞒了意图╮ 2021-02-02 01:43

We have an application thats already running for a long time. Now we are migrating it to Spring and possibly using Hibernate or any other ORM.

But we caught up with a qu

4条回答
  •  没有蜡笔的小新
    2021-02-02 02:07

    Hibernate works well if you can model your database under your objects.
    Vice versa, you are likely to get the database model as your your domain model. You need to evaluate how distant those two models are, otherwise you are going to map the database => ORM objects => your domain model. I would avoid that.

    If I want to skip the ORM part, I find myself quite happy with JDBI which I prefer over Spring JDBC Template

提交回复
热议问题