If the production already has a base (huge). And I do not know. I read about the JPA and ORM specification a handy thing, but is it possible to do something like Hibernate, for example, pick up already existing tables, or write everything with your own hands (that is, describe Java classes and then synchronize them), maybe I don’t understand . Who knows, explain or tell me how to do better?

    2 answers 2

    Everything has long been invented and written. There is such a tool Hibernate Tools (plugin for Eclipse), which allows, among other things, to generate Hibernate settings for an existing schema.

      If you use the commercial version of IntelliJ IDEA, then there is a built-in generation of JPA-entities from the database tables. In order not to write DAO with your hands, you can use Spring Data JPA or AutoDAO