What are pojos?How pojos are created & used in hibernate?
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...
What does hibernate mean? How it's work?
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...
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?
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...
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,
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.
How to connect two database in one application using hibernate?
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...
Why hibernate is more effective over other orm tools like ibatis, toplink?
How to do transactions with hibernate?
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
How to handle the Oracle type object with hibernate?
Hibernate transparent and automated persistence
Explain what are transparent persistence and automated persistence in hibernate?
It depends on the Database what we are using.According to the database we use corresponding Driver.