Skip to content

Hibernate Tools - Reverse Engineering for World DB (PostgreSQL)

Notifications You must be signed in to change notification settings

ghusta/world-db-hibernate-reveng

Repository files navigation

Hibernate Tools - Reverse Engineering for World DB (PostgreSQL)

Build Status

Maven command

mvn clean generate-sources -P gen-hibernate-tools

As a result, code will be generated in target/generated-sources/hibernate.

Running the database server

You can use a docker container, like this one :

docker run -d -p xxxx:5432 --name world-db ghusta/postgres-world-db:2.2

Templates (FreeMarker)

  • pojo : pojo/Pojo.ftl
  • dao (repository) : dao/JpaRepository.ftl

Tips

  • TODO: Force use of object types for @Id and not primitive types :
    See org.hibernate.tool.hbm2x.Cfg2JavaTool.PRIMITIVES

External references

About

Hibernate Tools - Reverse Engineering for World DB (PostgreSQL)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published