Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate XML

 
Kevin P Smith
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, just wondering if someone could point me in the right direction in regards to an error I can't get my head around with my Hibernate confirguration...

We have an initial cfg.xml which is throwingf the below error, I have tried looking at resolving it but can't get my head around what the issue is.

The part of the XML that is erroring is this:-


The error is:-


Cheers in advance
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error message is very clear. Is there something specfic about it that you don't understand?

You need to make sure that the 'insert' attribute is defined for the 'key'element in whatever XML DTD or XML Schema is being used to parse the document.

<key column="langId" insert="false" update="false" not-null="true"/>

You should also understand why it is there in the first place and take note that it may not exist in some Hibernate DTDs or XML Schemas.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic