Hibernate: Generates a database using a configuration file

xiaoxiao2021-03-06  79

At present, many people use Hibernate as their persistence, if we have written configuration file Poweracl.hbm.xml, no need to write SQL DDL. In addition to using tool SchemaExport, you can also write programs to automatically initialize the database and generate SQL DDL. (1) Hibernate configuration file hibernate.cfg.xml