"Hibernate" Remember that ordinal parameters is 1-based!

Source: Internet
Author: User

The official explanation of this error: 1, when the parameter is not required in the HQL, and the parameter is passed, 2, the set parameter does not start from 0.
However, this is not the case for these two types of problems.
  
Check for imported libraries without errors.
  
Finally in the network search to: http://qihaihui.iteye.com/blog/228685, which prompts:
1. This error is also raised if the PO class does not have the annotation of entity and table.
2. This error is also indicated if the PO class is not placed in the spring-configured annotatedclasses.
  
Check: Applicationcontext.xml, EbgProductParamTitle.hbm.xml is not added.
  
You can do it after you add it in.

"Hibernate" Remember that ordinal parameters is 1-based!

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.