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. |