Using Hibernate for Existing Database

前端 未结 4 1992
隐瞒了意图╮
隐瞒了意图╮ 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 01:53

    As others have pointed out an ORM is only a good choice if your database is not far from an object model.

    If that is the case then an option would be Hibernate through JPA for two resons:

    • Netbeans has a tool to generate JPA Entities from an existing database. This entities are not dependant on Netbeans so you could use a different IDE after the initial reverse engineering.

    • Spring Data JPA can avoid writing trivial queries and focus on the hard ones.

提交回复
热议问题