Menu

#11 Generated hibernate.cfg.xml needs DTD

open
nobody
None
5
2006-06-20
2006-06-20
Anonymous
No

When you use the wizard to generate a new Hibernate
Configuration file, the resulting hibernate.cfg.xml
file doesn't have the DTD which yields errors when
trying to use it.

The following should be added to the top of the file
during the generation process:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.