Generated hibernate.cfg.xml needs DTD
Brought to you by:
jhudson8
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">