I am newbie to h2 database.I have created some tables in h2 using browser console. when i try to create the hibernate.cfg file it creates like below.
<?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">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">org.h2.Driver</property>
<property name="hibernate.connection.url">jdbc:h2:~/selva</property>
</session-factory>
</hibernate-configuration>
But when i try to create a reverse engineering i got the below error.
why it happens?.Netbeans create reverse enginnering file for mysql and mssql databse.But why not create the h2?
Cannot establish database connection with selected Hibernate Configuration file. Please verify the database connection details in hibernate.cfg.xml.
1.How to solve the above issue?
2.Is Querying inmemory database in hibernate is different from the persistent database?
2.Is Configuring inmemory database in hibernate is different from the persistent database?
Any help will be greatly appreciated!!!