Is it possible to generate objects from an existing database model in JHipster?

Is there a way to generate entities from an existing database model or do I need to create all entities with yoman (yo) myself?

I heard about this technique from the Spring Roo project.

+4
source share
2 answers

no, you cannot, because the jhipster yeoman generator "only" aligns objects according to the patterns + given parameters / options. At this point, it does not query external sources such as databases.

jpa, angular linibase. , Liquibase , .

, , jhipster " " "table first".

, , jhipster, , . , , "--" .. Github , , ...

, : , 50 jhipster ( ihipster 1.6 ), " " [1]. "" , jhipster, SQL-. :

  • , jhipster (, ).
  • angular ( jhipster)
  • [2]
  • , jhipster . , jhipster.
  • .

, roo (http://docs.spring.io/spring-roo/reference/html/base-dbre.html). AFAIK, , roo, JPA. , JPA, jhipster ( , jpa-refectoring, [1])

[1] eclipse JPA, jpa dropwizard. Spring/Jhipster.

[2] linibase : http://www.liquibase.org/documentation/generating_changelogs.html

+5

Spring Roo DBRE, , .

@eplog , DBRE --repository JPA 1 w761 . http://docs.spring.io/spring-roo/docs/1.3.1.RELEASE/reference/html/base-dbre.html#d4e1765

Imho, , DBRE:

  • , , Roo .
  • Reverse egineering - , .

, . Roo!

+4

Source: https://habr.com/ru/post/1584420/


All Articles