After spent two days, I finally tried a hibernate, and finally lost a breath ~~, it is not easy, so-called hibernate, he is a technology of o / r mapping, subject to persistence It is possible to be an EJB lightweight. It is used to develop a small and medium system or nice. So recently is more popular.
After spent two days, I was trying to take a little test. I started for a long time for the version of Hibernate. The latest version is 3.0, depressed, the tools under the official website support 2.0 version, just want to think Let these tools support 3.0, but face a lot of XML files and Java files, and spend a lot of time, I will refund, replace it on the 2.0 version, who knows, to the last step, hibernate-extensions me There is a problem in version 2.0, and I spent N hours, see if my procedure and configuration are wrong, the result is 2.3.ok ~~~~ Vomit blood .......
However, although it is very hard to spend so long, I tried it, but it is very clear about the configuration and some information in it, after all, I spent so long .. I am really fun ,,, For a database, just change the configuration, it will be written in Code before, and it is impossible to do it if you don't change Code. I hope to communicate with everyone ...