Tag: difference
Difference between HQL and Criteria Query in Hibernate
Let us see the main differences between HQL and Criteria Query HQL is to perform both select and non-select operations on the data, but Criteria is only for selecting the data, we cannot perform non-select operations using criteria HQL…
Difference Between Merge And Update Methods In Hibernate
Both update() and merge() methods in hibernate are used to convert the object which is in detached state into persistence state. But there is little difference. Let us see which method will be used in what situation. Let Us…
Difference Between Hibernate Save And Persist Methods
Actually the difference between hibernate save() and persist() methods is depends on generator class we are using. If our generator class is assigned, then there is no difference between save() and persist() methods. Because generator ‘assigned’ means, as a…
Difference between ServletConfig and ServletContext in Java
Let us see the main differences between ServletConfig and ServletContext, which is very popular interview question as well 🙂 ServletConfig ServletConfig available in javax.servlet.*; package ServletConfig object is one per servlet class Object of ServletConfig will be created during…