Hibernate synchronizer learning notes

xiaoxiao2021-03-06  39

1.DATABASE TYPE: When establishing hibernate.cfg.xml, pop up a dialog, there is a Database Type, after selecting, it affects Dialect. Select a database type and generate the corresponding Diagect property in XML. For example, I selected MySQL, see the red code section. 2.Connection: First ensure that the project has already added a good Hibernate user library. After adding, you can assist the search, click Browse next to Driver Class, and type the DRIVER to find the full packet path of the corresponding class. The blue code part is the reflection of this option configuration. Hibernate.cfg.xml content:

jdbc: mysql: // localhost / test root

net.sf.hibernate.diaalect.mysqldiact

false true net.sf.hibernate.transaction. JTATRANSACTIONFAACTORY java: comp / userTransaction

3.Add mapping reason: The function of this menu is to add a word in the file.

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

New Post(0)