JBuilder9.0 development hibernate app Simple tutorial!

xiaoxiao2021-03-06  44

In developing some small applications, the operation of the database is more frequent, directly using JDBC and manually writes SQL, and the efficiency is low, and Hibernate has a good performance in the persistence of the database. Therefore, the author recently studied things about Hibernate, although it is more primitive, I hope that people who have just stepped into hibernate programming are helpful. During the development of Hibernate, the XML file and DTO write are relatively troublesome. I checked all the information on the Internet. No JBuider's integrated solution for Hibernate, more Hibernate plugins are for Eclipse. I am not able to endure for I am used to do JBuilder. After a few days of pondering, I found that Middlegen's application is convenient. First, I found an Eclipse plug-in MiddleGen. This plugin is very simple, and can be done according to the regular plugin installation method of Eclipse. First start Eclipse (I use 3.01), if the plugin is installed smoothly in File-> New -> Other-> Middle Gen, select MiddleGen-Build.xml. Then Nexe can see the MiddleGen interface (friends who have used MiddleGen should be very familiar with this interface) as shown above, we can choose Oracle driver classes, others can connect to the Oracle JDBC connection. According to Generate, you can generate it. Note All of our purposes is to generate the contents of the builde.xml file as follows:

middlegen? ウ or ロ ド ド て, build.properties の MiddleGen.Dir设 し??

hibernate http://prdownloads.sourceforge.net/Hibernate/ から から ウ ウ ロ ド ド し て ウ ウ ウ ロ ド ド て, build.properties の Hibenate.dir设 し し?? hibernate-extension http: / /prdownload/hibernate/ から? ウ ロ ロ ド し て

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

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.041, SQL: 9