When using Hibernate-tools to automatically generate Java classes and schemas, the found while looking is not present ... Abnormal

Source: Internet
Author: User

Problem Description:

When using Hibernate-tools, the found while looking is present ... (Specific information omitted).

Problem Analysis:

I found an error corresponding to the Hbm.xml file, where the ID is defined as:

<IDname= "Commentid"column= "comment_id">            <Metaattribute= "Scope-set">Private</Meta>            <!--for MySQL auto-grow -            <Generatorclass= "Native" />
</ID>

found that the original is missing type= "XXXX"; no type defined

Problem solving:

<IDname= "Commentid"type= "Long"column= "comment_id">            <Metaattribute= "Scope-set">Private</Meta>            <!--for MySQL auto-grow -            <Generatorclass= "Native" /></ID>

When using Hibernate-tools to automatically generate Java classes and schemas, the found while looking is not present ... Abnormal

Related Article

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.