Hibernate4 Basic carding (i)---a problem for a busy day

Source: Internet
Author: User

This two-day learning of Hibernate, here is a record of the process of hibernate learning.

First Hibernate is not the same as struts, and hibernate needs to install the relevant amount plug-in in Eclipse. about installing the plug-in this thing, engaged in a whole day, various problems.

I use the Luna, from the official web directly download Hibernate's latest version of the plugin, each installation half error, no way, from the marketplace directly installed, the results after loading found to start learning, Found unable to automatically generate the class map file Hbm.xml file, and then I suspect that the plugin has a problem, re-installed the plugin, the result is still the case. So began to search the Internet, found that there are similar problems, but not to the solution, to the technical Exchange group to ask, the results they said the direct copy of the file is good, do not automatically generated, so I tried a bit, found that the compilation can not find the mapping file, copy the past not? Would have been enough irritability, not automatic mapping is a problem ah.

I think the internet said it might be a path problem, I built an entity class under the default package, sure enough to automatically generate the mapping file. As long as it is in the name of their own package is not. Tangled up, is there a problem with Luna? It's almost a year's version. So began to look for the students to study Java for help, engaged in a half-day they have not encountered, is also uncertain. The final conclusion may be a plugin problem, it is recommended that I reload.

So I started reloading again, tried two times, or not, and I wonder if my eclipse is a problem? So I re-engaged in a Luna, or the latest version, and installed again, or not.

It was now a day past ...

After dinner, I began to doubt the problem of Luna, so I downloaded a Kepler, again loaded plug-ins, you can automatically create a mapping file, write a simple to add data to the database program, run normally.

Is it true that Luna has a problem?

Hibernate4 Basic carding (i)---a problem for a busy day

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.