Where is the Reverse Engineering feature in Hibernate5?

I am upgrading an old project from hibernate3 to hibernate5. The project is dependent on hbm2java (the so-called reverse engineering tool). In the old project, this was done with help mvn hibernate3:hbm2java.

Unfortunately, hbm2javait is not found anywhere in Hibernate5 - not in the code, but not in the documentation.

What is the equivalent of Hibernate5 old hbm2java? Or, if it is no longer supported, what is the next alternative? I am ready to completely exit Hibernate, if that is what it takes to get out of Hibernate 3.

+4
source share
2 answers

# 1:

maven ant. .

mvn antrun:run@hbm2java

(. ), pom.xml , :

<hibernatetool templatepath="src/the/path/to/the/directory/containing/pojo/directory">

pojo, .

, , pom.xml jdbcconfiguration.

reversestrategy="fully.qualified.name.CustomDelegatingReverseEngineeringStrategy"

: Maven

, , Hibernate 5.X.


# 2:

​​ Hibernate 5.x. - 4.3 5.x

: fooobar.com/questions/1247830/...

4.3 5.1 : http://o7planning.org/en/10125/using-hibernate-tools-generate-entity-classes-from-tables

:

  • ,
  • no <schema-selection>

( XML), Hibernate, . http://www.hibernate.org/30.html

: 6.

+2

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


All Articles