Nhib.pdf + MySQL = weird erro (the "reservedword" column does not belong to the reservedwords table .)

Source: Internet
Author: User

One afternoon, almost all of them were spent on this xxoo!

Vs2008, MVC 1.0, nhib1_2.2, MySQL XX, configure web. config according to the official NH example

 

Then run the following yellow pages:

"/" Indicates a server error in the application. -------------------------------------------------------------------------------- The column "reservedword" does not belong to the table reservedwords. Note: An unhandled exception occurs during the execution of the current Web request. Check the stack trace information for details about the error and the source of the error in the code. Exception details: system. argumentexception: the "reservedword" column does not belong to the reservedwords table. Source error: Row 12: Row 13: static nhibernatehelper () {row 14: sessionfactory = new configuration (). configure (). buildsessionfactory (); row 15:} line 16: source file: e: \ Documents ents \ SVN \ MIS \ project \ openservice \ filesii \ fileⅱ. dal \ nhibernatehelper. row Cs: 14 stack trace: [argumentexception: the column "reservedword" does not belong to the reservedwords table.] System. data. datarow. getdatacolumn (string columnname) + 1773557 system. data. datarow. get_item (string columnname) + 13 nhib.pdf. dialect. schema. abstractdatabaseschema. getreservedwords () + 237...

I have no choice but to understand the Chinese documents of Google and Baidu. However, I have no choice but to look at a foreign webpage, click in and follow up. solution:

Http://www.google.cn/search? Hl = ZH-CN & Q = nhib.pdf + MySQL + reservedword & btng = Google + search

Https://forum.hibernate.org/viewtopic.php? F = 25 & t = 997701

Barlog

Post subject:Re: column 'reservedword' does not belong to table reservedwords

Posted:Wed Jul 22,200 9 :43 AM

Newbie

Joined:Wed Jul 22,200 9 AM
Posts:1

Greetings.
Just add following line to configuration file to <session-factory> section.
<Property name = "hbm2ddl. Keywords"> none </property>
However this fix might cause unexpected problems.
Best regards.

_________________
Infinite Diversity in Infinite Combination

I am XX, He's oo !!

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.