The use of Middlegen-Hibernate-r5 error mapping file

Loom as a result of their reverse engineering MyEclispe on the database table to the hibernate mapping file can not be used. Therefore, use an external tool Middlegen-Hibernate-r5 to carry out the conversion. At the same time, hibernate-extensions-2.1.3 of this tool will be transformed into VO mapping file documents, namely, the value of the object. But hibernate-extensions-2.1.3 only supports hibernate2.0, this time at school to know, but his machine off the network on a map error report. Suspected to be a problem to configure the network I have, it is true, Tomcat to start correctly. Online to find a pile of Could not parse mapping document from input stream, not to resolve. Later, a number of methods online to find that a DTD to verify that it is a problem the first spring, but still can not solve. java.net.UnknownHostException: hibernate.sourceforge.net find this error, there is a mapping error posted that have reported this error. The results to see only discovered Middlegen-Hibernate-r5 to a time when the document is converted into 2.0, that is, the first document contains the following:

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 2.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >

In this way, I did not have any network machine, DTD validation error will be (I use hibernate3.0, of course, can not verify). 2.0 into 3.0, problem-solving.

Khan. Record.

分类:Java 时间:2009-10-09 人气:436
分享到:
blog comments powered by Disqus

相关文章

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.400 (s). 12 q(s)