08 November 2020

#Hibernate

Hibernate
What is Hibernate Framework?
What is Java Persistence API (JPA)?
What are the important benefits of using Hibernate Framework?
What are the advantages of Hibernate over JDBC?
What is hibernate configuration file?
What is hibernate mapping file?
What is Hibernate SessionFactory and how to configure it?
What is Hibernate Session and how to get it?
What is difference between openSession and getCurrentSession?
What is difference between Hibernate Session get() and load() method?
What is hibernate caching? Explain Hibernate first level cache?
What are different states of an entity bean?
What is use of Hibernate Session merge() call?
What is difference between Hibernate save(), saveOrUpdate() and persist() methods?
What will happen if we don’t have no-args constructor in Entity bean?
What is difference between sorted collection and ordered collection, which one is better?
What are the collection types in Hibernate?
What is HQL and what are it’s benefits?
What is Query Cache in Hibernate?
What is the benefit of native sql query support in hibernate?
What is Named SQL Query? Benefits?
What is the benefit of Hibernate Criteria API?
What is Hibernate Proxy and how it helps in lazy loading?
What is cascading and what are different types of cascading?
What is HibernateTemplate class?
What are best practices to follow with Hibernate framework?
What is Hibernate Validator Framework?
What is the benefit of Hibernate Tools Eclipse plugin?
What are the benefits of ORM tool?
What are the two cache types in Hibernate?
What are the two (2) components available in Hibernate configuration object?
What is the syntax to create SQL query in Hibernate?
What is the syntax to add criteria to the SQL query?
What is the syntax to retrieve hibernate statistics?
What are the different methods to fetch objects from database in Hibernate?
What is session interface?
What is session.save() in hibernate?
What is saveOrUpdate() in hibernate?
What are the benefit of version property in Hibernate?
What are the usage of method Session.beginTransaction()?
What is Query level cache?
What is get () and load()
What is addjar() and addDirectory() method?
What is Hibernate tuning?
What is derived properties?
What is Dialect?
What is POJOs?
What is transaction management?
What is callback interface in Hibernate?
What is first level cache?
What is the method to reattach the detached objects?
What is Lazy loading?
What is HQL?
What is Connection Pool?
Name some important interfaces of Hibernate framework?
Name some important annotations used for Hibernate mapping?
Provide the list of collection types in Hibernate?
Provide the list of Hibernate support databases?
Provide the list of ORM levels available in Hibernate?
Provide the mapping associations utilized in Hibernate?
Provide the fetching strategies available in Hibernate?
Provide the various other ORM frameworks in Hibernate?
Provide the method to re-read a provided instance state from the underlying database?
Provide the concurrency strategies in Hibernate?
Why we should not make Entity Class final?
Which design patterns are used in Hibernate framework?
Which annotation is used to specify the database table?
Which is the default transaction factory?
How to configure Hibernate Second Level Cache using EHCache?
How to implement Joins in Hibernate?
How to log hibernate generated sql queries in log files?
How to implement relationships in hibernate?
How transaction management works in Hibernate?
How to integrate log4j logging in hibernate application?
How to use application server JNDI DataSource with Hibernate framework?
How to integrate Hibernate and Spring frameworks?
How to integrate Hibernate with Servlet or Struts2 web applications?
difference between annotations and commons-annotations?
Difference between bytecode instrumentation and bytecode enhancement?
@ElementCollection - Strange delete/insert behavior
A collection with cascade=”all-delete-orphan” was no longer referenced by the owning entity instance
Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1
Can we execute native sql query in hibernate?
Can u mention the element of hbl.xml which helps to create the primary key values automatically?
Can u mention the element of hbl.xml which helps to map the property ‘java.util.SortedSet’ in hibernate?
Describe the steps to create database application using Hibernate?
Do you think the extension ‘.hbm.xml’ is mandatory for all the hibernate mapping file to work properly?
Do you think polymorphism is supported by Hibernate?
Do you think the SessionFactory is thread-safe?
Do you think Session is a thread-safe object?
Foreign keys instead of Entities
Hibernate SessionFactory is thread safe?
Hibernate Session is thread safe?
List out the core interfaces available in Hibernate?
List out the advantages of Hibernate template?
List out the three (3) inheritance models available in Hibernate?
List out few Java-based frameworks which is supporting hibernate integration?
List out a few properties required to database configuration in standalone condition?
To disable second level cache in Hibernate, what are the different methods?
  • Hibernate
  • Interface
    • Configuration
    • SessionFactory
    • Session
    • Query
    • Criteria (Criteria creteria =getSession.createCreteria(User.class))
    • Transaction
  • Configuration file and Mapping file (hibernate.properties, hibernate.cfg.xml)
  • Session - load, get, lock and update
  • HQL-Hibernate Query Language (Query query= getSession().createQuery(from User);)
  • Object-Entity, Value
  • Hibernate Lifecycle
    • Transient
    • Persistent
    • Detached
  • Inheritance Mapping
    • Table Per Hierarchy
    • Table Per Concrete class
    • Table Per Subclass
  • Collections
    • One-to-One
    • One-to-Many
    • Many-to-One
    • Many-to-Many
  • Cache
    • First level cache
    • Second level cache
    • Query cache
  • Mapping - Light object, Medium object and full object
  • Cascade
  • CascadeType
    • CascadeType.ALL
    • CascadeType.DETACH
    • CascadeType.MERGE
    • CascadeType.REFRESH
    • CascadeType.REMOVE
    • CascadeType.PERSIST
  • HibernateTemplate
  • Transaction management - Methods
  • NamedQuery
  • Hibernate proxy

No comments:

Post a Comment

Most views on this month