hibernate tools超时的解决方法

今天发现hibernate tools在从数据库生成POJO文件时,出现了超时异常

经过发现,是生成的.cfg.xml文件中,使用的是DTD地址为:

http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd

这个地址在国内无法访问,之后替换为下面的DTD地址:

www.hibernate.org/dtd/hibernate-configuration-3.0.dtd

则一切正常。

使用hibernate tools插件生成POJO

http://maimode.iteye.com/blog/1630670

HibernateTools实现pojo类 数据库schma mapping映射的相互转换

http://blog.csdn.net/xqf309/article/details/27721777

 

猜你喜欢

转载自flowaters.iteye.com/blog/2206205
今日推荐