Wednesday , June 28 2017

Recent Posts

October, 2015

  • 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 »
  • 25 September

    increment and decrement operators in Java

    In this tutorial, we are going to learn about one of the mostly used and most confused operators in java. That is increment and decrement operators. increment and decrement operators : Increment and decrement operators are unary operators. We can only apply these operators on single operand, hence these operators …

    Read More »
  • 13 September

    Reference types in Java : Strong, Soft, weak, Phantom

    In this tutorials, we are going to learn about the most interesting topic reference types in Java. These are the types of references which are used by the garbage collector to deallocation process of objects. Lets see the basics of Reference types in Java and understanding in detailed. Reference Types …

    Read More »