Hibernate column shoshould be mapped with insert = "false" update = "false" error cause

Source: Internet
Author: User
Shocould be mapped with insert = "false" update = "false

 

<? XML version = "1.0"?>
<! Doctype hibernate-mapping public
"-// Hibernate/hibernate mapping DTD // en"
Http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd>

<Hibernate-mapping package = "com. huapu. networkmanage. DB. hibernate">
<Class
Name = "sysloglogstack"
Table = "syslog_logstack"
>
<Meta attribute = "sync-Dao"> false </meta>
<ID
Name = "ID"
Type = "integer"
Column = "logstack_id"
>
<Generator class = "sequence">
<Param name = "sequence"> seqportal </param>
</Generator>
</ID>


<Property
Name = "targetid"
Column = "target_id"
Type = "integer"
Not-null = "false"
Length = "12"
/>

<Property
Name = "collectorid"
Column = "collector_id"
Type = "integer"
Not-null = "false"
Length = "12"
/>
<Property
Name = "createtime"
Column = "createtime"
Type = "date"
Not-null = "false"
Length = "7"
/>
<Property
Name = "facility"
Column = "facility"
Type = "string"
Not-null = "false"
Length = "100"
/>
<Property
Name = "severity"
Column = "severity"
Type = "string"
Not-null = "false"
Length = "4"
/>
<Property
Name = "logmsg"
Column = "logmsg"
Type = "string"
Not-null = "false"
Length = "1000"
/>
<Property
Name = "logtime"
Column = "logtime"
Type = "date"
Not-null = "false"
Length = "7"
/>

<Property
Name = "referenceid"
Column = "reference_id"
Type = "integer"
Not-null = "false"
Length = "12"
/>

<Role-to-one
Name = "target"
Column = "target_id"
Class = "dnode"
Not-null = "true"
/>

</Class>
</Hibernate-mapping>

Bytes --------------------------------------------------------------------------------------------

This error occurs when different attributes are mapped to the same field and the same field is mapped repeatedly;

RepeatedColumn in mapping for entity: COM. boco. scms. model. Ship. Order. shiporder column: deliver_linkman_email (shocould be mapped with insert = "false" update = "false ")

Although it is a very low-level error, in the case of many fields, it is really confusing to report such an error. If you know the reason, check the configuration file one by one.

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.