Saturday , August 19 2017

Recent Posts

October, 2015

  • 25 October

    Table per Sub Class in Hibernate Inheritance

      In this tutorial we are going to implement table per sub class strategy in hibernate inheritance. For bettor understanding we are taking the same example (Card, Cheque and Payment classes) like previous tutorials table per class and table per concrete class. Table per Sub Class in Hibernate : We …

    Read More »
  • 24 October

    Table per Concrete Class in Hibernate Inheritance

      Table per Concrete Class is one of the inheritance strategies in hibernate. In this tutorial we are going to implement the table per concrete class inheritance strategy. Here we are taking the same previous tutorial table per class strategy  example like Card, Cheque and Payment classes. If we want …

    Read More »
  • 23 October

    Table per Class Strategy in Hibernate Inheritance

    Table per Class is one of the Hibernate inheritance strategy. As we discussed in the previous tutorial Types of Inheritance Mapping Strategies in Hibernate. In this tutorials, we are going to implement the Table per Class strategy in Hibernate using xml configuration. We can also implement the same example using …

    Read More »
  • 23 October

    Hibernate Inheritance Mapping Strategies

      In our day to day development life, Inheritance plays an important role in our applications. As we already know the advantages of inheritance in OOPS and it is also  recommended to build the interface based programming with respect to improve the re-usability. When developing the hibernate applications, it may …

    Read More »
  • 21 October

    Singleton Hibernate SessionFactory Example

      Hibernate SessionFactory is a key interface of Hibernate API. The Hibernate SessionFactory interface is comes from org.hibernate.SessionFactory. The main goal of this interface is to provide the Hibernate Session instances. Hibernate SessionFactory : We can get the Hibernate SessionFactory object by calling the buildSessionFactory() method. Like below : But …

    Read More »
  • 14 October

    Custom Generator Class in Hibernate

      In the previous tutorials we have discuss about what are the different types of generator classes in hibernate and how they are works. The generator classes which are provided by the hibernate are called as pre defined generator classes. When existing generator classes in hibernate (pre defined generator classes) …

    Read More »
  • 12 October

    Generator Classes in Hibernate

    By knowingly or unknowingly, we have been using the generator classes in hibernate since our first basic application. But generators are the one of the most important concept to understand the basics of hibernate. Hibernate provides different types of predefined generator classes, to represent the primary key column in database. …

    Read More »
  • 10 October

    hibernate update query example

    In the previous tutorials we have discussed about complete CRUD operations using hibernate framework. In this tutorials we are going to discuss about what are the different ways to update an object using hibernate. And we can also conclude that which method is better than all the approaches. Hibernate Update …

    Read More »
  • 9 October

    Hibernate cache first level example

      In the previous tutorials, we have discussed about different states of hibernate object and also we discussed about how load() and get() methods are working internally. Now we are  going to discuss about one more important topic in hibernate, what is hibernate cache and how it works exactly. Hibernate …

    Read More »
  • 7 October

    Difference between update vs merge in Hibernate example

    What is the different between update and merge method in hibernate is one of the most frequently asked interview question. In previous tutorials we have discussed about differences between load() and get() methods. In this tutorial let us see about update() vs merge() methods in hibernate. And which method will …

    Read More »
  • 6 October

    Object States in Hibernate

      Object states in Hibernate plays a vital role in the execution of code in an application. Hibernate has provided three different states for an object of a pojo class. These three states are also called as life cycle states of an object. Object States in Hibernate : The three …

    Read More »
  • 2 October

    Hibernate session differences between load() and get()

    Differences between load() and get() method is one of the most popular interview question in hibernate. Irrespective of experience or fresher, every person will face this question in telephonic or face to face interview. Not only the interview point of view, in order to understanding the internals of hibernate everybody …

    Read More »

September, 2015

  • 30 September

    BeanFactory Example in Spring

      In order to instantiate the Spring core container, we can we create an object of the BeanFactory or ApplicationContext implementation classes by passing the Spring configuration. The Spring Framework comes with two distinct types of containers: BeanFactory Interface ApplicationContext Interface BeanFactory : BeanFactory is an interface, which is coming …

    Read More »
  • 29 September

    Dependency Injection (IoC) in spring with Example

      What is Dependency Injection : Dependency injection is also called as Inversion of control. The Inversion of control is a design pattern describing an external entity. It is used to write objects at creation time by injecting their dependencies, so that they can work together in a system. In …

    Read More »
  • 27 September

    Advantages of Spring Framework

    Spring Framework: Spring is one of the most popular open source frameworks for developing enterprise applications. It provides comprehensive infrastructure support for developing  Java enterprise level applications. Spring also enables the developer to create high performing, easily testable, reusable and loose coupling enterprise Java application. The main 4 key strategies …

    Read More »