Use MIDDLEGEN to generate Hibernate database table mapping files

xiaoxiao2021-03-06  62

1: Download MiddleGen-Hibernate-R5 Address: URL http://voxel.dl.sourceForge.Net/SourceForge/Hibernate/middlegen-hibernate-r5.zip2: Unzip the downloaded decompression, such as d: / middlegen-hibernate -r53: Configure the database file to enter the / config / database subdirectory under the D: / MiddleGen-Hibernate-R5 directory, select the database file, I use mysql. Put the original change to specifies the database and username.

My configuration is as follows (red part is part of the part to modify) Put Mysql driver mysql-connector-java-3.0.15-ga-bin .jar Copy to D: / MiddleGen-Hibernate-R5 / LIB Next 4: Modify Build.xml Modify the build.xml file under the D: / MiddleGen-Hibernate-R5 directory, this file is the MiddleGen-Hibernate Ant build configuration.

转载请注明原文地址:https://www.9cbs.com/read-85141.html

New Post(0)