cannot resolve class 'jdbc' - Hibernate -


i starting out hibernate , have been trying wire h2.

my hibernate.cfg.xml file looks this:

<?xml version='1.0' encoding='utf-8'?> <!doctype hibernate-configuration public         "-//hibernate/hibernate configuration dtd//en"         "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> <hibernate-configuration>     <session-factory>         <property name="connection.url">org.h2.driver</property>         <property name="connection.driver_class">jdbc:h2:mem:test</property>         <property name="connection.username">sa</property>         <property name="connection.password"/>         <!-- db schema updated if needed -->         <!-- <property name="hbm2ddl.auto">update</property> -->          <!-- sql dialect -->         <property name="dialect">org.hibernate.dialect.h2dialect</property>     </session-factory> </hibernate-configuration> 

i getting error says: cannot resolve class 'jdbc'. installed h2 maven.

i believe might want use '.' instead of ':' in class name.

see http://docs.jboss.org/hibernate/orm/3.3/reference/en-us/html/session-configuration.html

or looks have driver class , connection url properties swapped.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -