What is Maven? Maven is a project management tool. It provides the developer a complete build lifecycle framework. On executing Maven commands, it will look for POM file in Maven; it will run the command on the resources described in the POM. What does it mean when you say Maven uses Convention over Configuration? Maven […]

Hibernate n+1 problems only comes for one to many relationship. Let us see this problem by example – We have Department table with a one-to-many relationship with Employee. One Department may have many Employees. Table Department ID NAME 1 Department 1 2 Department 2 3 Department 3 Table Employee ID DEPARTMENT_ID NAME 1 1 Employee […]

What’s the Difference between a Primary Key and a Unique Key? Both primary key and unique key enforce uniqueness of the column on which they are defined. But by default, the primary key creates a clustered index on the column, whereas unique key creates a non-clustered index by default. Another major difference is that primary […]

What is JSP? Java Server Pages technology (JSP) is used to create dynamic web page. It is an extension to the servlet technology. A JSP page is internally converted into servlet. What are advantages of using JSP? JSP has several advantages as listed below JSP Performance is significantly better because JSP allows embedding Dynamic Elements […]

Singleton is one of the Gangs of Four Design patterns and comes in the Creational Design Pattern category. From the definition, it seems to be a very simple design pattern but when it comes to implementation, it comes with a lot of implementation concerns. The implementation of Singleton pattern has always been a controversial topic […]

What is Spring Security? Spring security is a project under spring framework umbrella, which provides support for security requirements of enterprise Java projects. Spring Security formerly known as aegis security provides out of box support for creating login screen, remember me cookie support, securing URL, authentication provider to authenticate user from database, LDAP and in […]

What is a Controller in Spring MVC? Just like MVC design pattern, Controller is the class that takes care of all the client requests and send them to the configured resources to handle it. In Spring MVC, org.springframework.web.servlet.DispatcherServlet is the front controller class that initializes the context based on the spring beans configurations. A Controller […]

What is Aspect Oriented Programming (AOP) in Spring? Aspect Oriented Programming works like Object Oriented Programming. In Object Oriented Programming, the unit of modularity is Object But in Aspect Oriented Programming the unit of modularity is Aspect. Aspect works as the modularization of concerns known as crosscutting concerns in AOP. AOP framework is pluggable in […]

What is Spring? Spring is an open source development framework for enterprise Java. The core features of the Spring Framework can be used in developing any Java application, but there are extensions for building web applications on top of the Java EE platform. Spring framework targets to make J2EE development easier to use and promote […]