在哪里可以找到Hibernate的DTD? [英] Where to find the DTD of Hibernate?

查看:119
本文介绍了在哪里可以找到Hibernate的DTD?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hibernate jar中的DTD是了解可以包含哪些属性以及该标签的预期名称的好方法。

The DTD in the hibernate jar is a good way to know what are the attributes that can be included and the expected name for that tag.

打开DTD文件是获取所有元素和属性的概览,查看默认值以及一些注释的最简单方法。

Opening up the DTD file is the easiest way to get an overview of all elements and attributes, and to view the defaults, as well as some comments.

这将帮助程序员编写休眠.cfg.xml文件来自scracth(疯狂但有人要求这样做,而不使用互联网:O)

This will help the programmer to write hibernate.cfg.xml file from scracth(crazy but some people do ask this to achieve without using internet :O )

请告诉我们何时找到DTD jar。

Please tell where to locate the DTD when we have a hibernate jar.

这不是一个编程问题,但对编程人员会有帮助。

This is not a programming question but will be helpful for programmer.

推荐答案

DTD:

Hibernate 5 and newer

DTD:

hibernate-core-5.2.10.Final.jar\org\hibernate\hibernate-configuration-3.0.dtd
hibernate-core-5.2.10.Final.jar\org\hibernate\hibernate-mapping-3.0.dtd

XSD:

hibernate-core-5.2.10.Final.jar\org\hibernate\hibernate-configuration-3.0.xsd
hibernate-core-5.2.10.Final.jar\org\hibernate\hibernate-mapping-3.0.xsd    



Hibernate 4



Hibernate 4

hibernate-core-4.3.5.Final.jar\org\hibernate\hibernate-configuration-3.0.dtd 
hibernate-core-4.3.5.Final.jar\org\hibernate\hibernate-mapping-3.0.dtd 

和Hibernate 4升级为使用XSD:

and Hibernate 4 was upgraded to use XSDs as well:

hibernate-core-4.3.5.Final.jar\org\hibernate\hibernate-configuration-4.0.xsd
hibernate-core-4.3.5.Final.jar\org\hibernate\hibernate-mapping-4.0.xsd



Hibernate 3



,比如 hibernate3.jar ,你可以在下面找到它们:

Hibernate 3

For old versions, like hibernate3.jar you can find them under:

hibernate3.jar\org\hibernate\hibernate-configuration-3.0.dtd
hibernate3.jar\org\hibernate\hibernate-mapping-3.0.dtd

对于任何未在此处列出的3.x或更高版本,您可以在您的 hibernate-core-XxFinal.jar 存档位于 org.hibernate 包中

For any version 3.x or above not listed here, you can find these files in your hibernate-core-X.x.Final.jar archive under the org.hibernate package

这篇关于在哪里可以找到Hibernate的DTD?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆