My naming rules are in trouble when using nhibloud. tool. hbm2ddl

Source: Internet
Author: User

In the three articles on write ing, I used the following rules for class naming:

Class Name: C + data table name
Ing file name: data table name + HBM. xml

I have learned this step by step. As learning goes deeper, the previous summary will inevitably lead to some errors. The above rules are true. We are generally willing to use nhib.pdf. tool. hbm2ddl to create our data tables, so we can focus on modifying our classes and ing files. If you want to do the same, you 'd better not do it like me. Here, I encountered such a problem.

Nhib.pdf. Examples. Blogger. orderfixture. Main: nhib.pdf. mappingexception: Resource: nhib.pdf. Examples. Blogger. Corder. HBM. xml not found

Hbm2dll seems to find the Corder class first, so I went to find its HBM. xml file, instead of taking it for granted.
Idea ___ analyze the HBM. xml files first.

So my rule has been modified

Class Name: data table name
Ing file name: data table name + HBM. xml

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.