In this post, we will learn how to integrate AngularJS with Spring MVC and perform CRUD operation using $http service. We will be building a REST Web service using Spring MVC Controller (@RESTController) and AngularJS will act as the front-end, through $http service we will perform Create, Read, Update, Delete operations.
Java being an Object Oriented Language, it supports one of the most powerful concept “Inheritance“. Object Oriented Systems generally supports both IS-A and HAS-A relationships, whereas Relational Model supports only HAS-A relationship. Hibernate can help you map such kind of entities into the Relational table based on the strategy selected.
Types of Inheritance in Hibernate
Hibernate offers 3 different approaches for mapping this kind of hierarchical classes.
- Table per Class hierarchy
- Table per Sub-Class hierarchy
- Table per Concrete Class hierarchy
In this tutorial, we will learn to how to read excel file in Java using Apache POI. POI stands for Poor Obfuscation Implementation, is a powerful Java library which works with different Microsoft Office formats such as Excel, Word etc. Let’s dig into the code now. [Read more…]
In this Hibernate Many-To-Many Mapping Example, we will learn how Hibernate Many-To-Many relationship works(Using Annotation). Let’s take the Example of Employee and Department, one Employee can be part of many Departments and similarly one Department can have many Employees. Let’s dig into the code.
In this tutorial, we will learn how to integrate AngularJS with Spring MVC application. We will be building a REST Web service using Spring MVC Controller (@RESTController), here AngularJS will request the data through the HTTP protocol and the RESTFul Web Service will return the JSON format response. Let’s now dig into the code. [Read more…]
In this article, we will learn how to achieve Hibernate One-to-One Bidirectional Mapping using the JPA Annotations with Foreign Key, in the previous One-To-One Bidirectional Mapping Example we used only the Primary Key. This Annotation approach is just an alternative to the XML mapping which we used in our earlier article Hibernate One-To-One Mapping XML Example with Foreign Key
In this article, we will learn how to achieve Hibernate One-to-One Bidirectional Mapping using the JPA Annotations. This Annotation approach is just an alternative to the XML mapping which we used in our earlier article Hibernate One-to-One Bidirectional XML Mapping Example with Primary Key.
In the previous Spring Security Hello World Example, we have built a simple Spring MVC Hello World application and took the advantage of Spring Security by using the default login form provided. In this tutorial we will go a bit further and build our own login for our Spring Security Custom Login Form application.