GeekInterview.com
Series: Subject: Topic:

Hibernate FAQs

Showing Questions 1 - 11 of 11 Questions
Sort by: 
 | 

Hibernate JDBC driver

Asked By: itsvenuhere | Asked On: May 6th, 2010

What type of JDBC driver is used in hibernate?

Answered by: nabi_alam on: Mar 30th, 2012

It depends on the Database what we are using.According to the database we use corresponding Driver.

Pojos

Asked By: swap_j2ee | Asked On: Sep 18th, 2009

What are pojos?How pojos are created & used in hibernate?

Answered by: teddythms on: Mar 24th, 2011

You can use the Hibernate Mapping Files and POJOs from a Database wizard to generate files for you. The wizard can generate a POJO and a corresponding mapping file for each table that you select i...

Hibernate

Asked By: radhika rasne | Asked On: Mar 14th, 2010

What does hibernate mean? How it's work?

Answered by: teddythms on: Mar 24th, 2011

Hibernate is a framework, which enables your applications to interact with DBs using Object Relational Mapping.Hibernate provides a solution to map database tables to a class. It copies the database d...

Hibernate error

Asked By: teddythms | Asked On: Mar 24th, 2011

Org.Hibernate.Hibernateexception: could not instantiate querytranslatorfactory: org.Hibernate.Hql.Classic.Classicquerytransactionfactory at org.Hibernate.Cfg.Settingsfactory.Createquerytranslatorfactory(settingsfactory.Java:391) at org.Hibernate.Cfg.Settingsfactory.Buildsettings(settingsfactory.Java:222) at...

How do I call the the stored procedure using hibernate?

Asked By: Srikanth Gambhir | Asked On: Oct 10th, 2007

Answered by: tecfinder on: Mar 26th, 2010

There are two ways you can call stored procedure in hibernate1) session.connection() will give you jdbc connection which you can use it to call callablestatement which you normally do in JDBC. Here yo...

Answered by: Hur Muhammad on: Mar 10th, 2008

You can use callableStatement to call any procedure from the Hibernate but i prefer to use iBatis instead of Hibernate for performing these type of actions.

How will handle hibernate the situation,

Asked By: venkata Ramana | Asked On: Sep 21st, 2007

If the data base does not contain any primary key?I.E we had a table that does not contain key .But we map the all the fields to properties of class.

Answered by: tecfinder on: Mar 26th, 2010

You can use hibernate composite key option(<composite-id>).so primary key is not required


tecfinder

Answered by: bachi14 on: Dec 26th, 2007

Its not possible in hibernate, Primary Key is a must.

Connect two database

Asked By: cursin | Asked On: Jan 19th, 2010

How to connect two database in one application using hibernate?

Answered by: awasie on: Jan 20th, 2010

You have to create two different cfg files.for exampledb1.cfg.xmldb2.cfg.xmlConfiguring for different database.for db1.cfg.xmlpublic class HibernateSessionFactory {    private static St...

Orm tools

Asked By: sanjit1986 | Asked On: Jul 19th, 2009

Why hibernate is more effective over other orm tools like ibatis, toplink?

Hibernate transactions

Asked By: Jagadish.gadarla | Asked On: Sep 16th, 2008

How to do transactions with hibernate?

Answered by: prsrinu on: Feb 26th, 2009

Session session = getSessionFactory().openSession();
Transaction tx = session.beginTransaction();
MyPersistanceClass mpc = new MyPersistanceClass ("Sample App");
session.save(mpc);
tx.commit();
session.close();

Oracle type object with hibernate

Asked By: rakeskul | Asked On: Jan 9th, 2009

How to handle the Oracle type object with hibernate?

Hibernate transparent and automated persistence

Asked By: attipatla.praveena | Asked On: Jan 2nd, 2009

Explain what are transparent persistence and automated persistence in hibernate?

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.