Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate - the headder for *.hbm.xml file

 
Witold Marshal
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the headder for mapping files for new release od Hibernate (version 4.x)?
I have found something like this:


But location : http://www.hibernate.org/xsd/hibernate-mapping
is not working (not such page found).
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Witold Marshal wrote:


But location : http://www.hibernate.org/xsd/hibernate-mapping
is not working (not such page found).


It's important to understand that the xmlns attribute value is just a logical namespace and it need not be the location where the xsd is published. Usually the schemaLocation attribute maps the logical namespace to a location, most of the times it's a URL. However, in this case the xsd is packaged within the hibernate jars and is not published anywhere. If you are trying to setup your IDE for auto-completion and other such features for hibernate configuration files, then you'll have to setup the IDE to point to the xsd contained in the hibernate jar.
 
Witold Marshal
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to get that xsd file to read the schema elements and than maybe customize my Eclipse for prompting xml elements.
Do you know the location o this xsd file? Which jar contains it?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Witold Marshal wrote:
Do you know the location o this xsd file? Which jar contains it?


It should be in the hibernate-core*.jar somewhere under a folder named schema inside it. I don't have ready access to hibernate jars right now to confirm. But you can probably do a quick check in your project dependencies.
 
Witold Marshal
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lof. You were right, I have found it. : )
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic