how to fix recognized obsolete hibernate namespace waring massage -


configuration [info] hhh000043: configuring resource: com/logiware/webtool/hibernates/hibernate.cfg.xml  configuration [info] hhh000040: configuration resource: com/logiware/webtool/hibernates/hibernate.cfg.xml  configuration [info] hhh000221: reading mappings resource: com/logiware/webtool/hibernate/domain/bookingterminal.hbm.xml  dtdentityresolver [warn] hhh000223: recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. use namespace http://www.hibernate.org/dtd/ instead. refer hibernate 3.6 migration guide!  configuration [info] hhh000221: reading mappings resource: com/logiware/webtool/hibernate/domain/bkgtemplate.hbm.xml 

my code:

<!doctype hibernate-configuration public "-//hibernate/hibernate configuration dtd 3.0//en" "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">  <!-- generated myeclipse hibernate tools.                    --> <hibernate-configuration>  <session-factory> <property name="connection.provider_class">org.hibernate.service.jdbc.connections.internal.c3p0connectionprovider</property> <property name="current_session_context_class">thread</property> <property name="dialect">com.gp.cong.hibernate.dirtydialect</property> <property name="show_sql">false</property>     <property name="hibernate.jdbc.batch_size">50</property> <property name="connection.driver_class">com.mysql.jdbc.driver</property> <property name="connection.autoreconnect">true</property> <property name="connection.autoreconnectforpools">true</property> <property name="connection.is-connection-validation-required">true</property> 

just change hibernate.cfg.xml file namespace definitions below:

    <!doctype hibernate-configuration public "-//hibernate/hibernate configuration dtd//en" "http://www.hibernate.org/dtd/hibernate-configuration.dtd"> 

similarly hibernate mapping files, change below:

<!doctype hibernate-mapping public    "-//hibernate/hibernate mapping dtd//en"    "http://hibernate.org/dtd/hibernate-mapping.dtd"> 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -