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