I am new to hibernate. In my earlier projects where i have created ODBC datasources and connect to it through JdbcOdbcDriver.
Now, how to create a database connectivity in hibernate?
I am using SQL 2008 database and Netbeans 6.9.1 IDE.
Someone please help me.
You should never use the JDBC-ODBC bridge unless there is no choice (i.e. its Access you are using)
You can either configure Hibernate to use an already configured DataSource, or you can get it to use the DriverManager. The example in the documentation shows the later. Microsoft supply a type 4 JDBC driver (check MSDN) or jTDS can be used.
thanks Paul, i am getting the documentation link now.
i have download the jTDS zip file, in there home page they said to "just drop the jar in your application's classpath". it's not getting clear to me, what does this classpath means?
I am using netbeans, so where should i place the jTDS jar file??
My question is that..
whether i should set the classpath for jTDS.jar in the same way as we set the classpath for jdk?
and can i access that from the command prompt, but i use netbeans, can it be useful for that also??
subject: how to connect to a database in hibernate