![]() ![]() The annotation tells that this field will be used to uniquely identify every employee and act as the primary key for our object. The annotation makes spring able to read it as an entity that is linked later to the database via repository. ![]() Here we can see how we make use of Lombok and skip writing all the getter, setter, and constructors. In part 3 of this Employee API, I will be adding MongoDB in addition to the H2 DB to get to know how can we connect two databases within the same API. ![]() ![]() In part 2 of the Employee API, I will be adding a composite key for address and a composite primary key for unique identification. (PS: the github link is provided at the end) One of the key feature of this API is the search feature for specific keywords. MariaDB and MongoDB were used in the actual implementation.Here in this article I will be going through the Employee Mock API which will be using H2 Database, which is an in-memory volatile database but suits our need to learn the Spring Boot and make an API. This was a mock API that we had to make in order to get familiar with the Spring Boot.įurther task was to add two Database (NO-SQL and SQL) to the actual API made (not disclosing any confidential info.). Hello Everyone !!! This is my first article, written as a way to share a part of my learning during my summer internship at DBS Bank. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |