Entries from 2018-05-01 to 1 month

Spring boot quartz

Spring can't inject spring bean when using Quartz in Spring . The job in Quartz is reflected by the instance and is not managed by spring. As a result, the spring in the job cannot be injected into the spring. solution Quartz has a JobFact…

Spring boot Quartz with example

When it comes to scheduling jobs in a java application, Quartz is the first tool that comes into consideration. Quartz is job scheduler backed up by most popular RDBMSes.It is really convenient and gets integrated with spring quite easy. I…

Application Programming Interface In Java

An application programming interface (API), in the context of Java, is a collection of prewritten packages, classes, and interfaces with their respective methods, fields and constructors. Similar to a user interface, which facilitates inte…

Spring Framework Applications

In this article let’s try to discuss why it is so popular and why use it. So let’s focus on the major advantages of this open source application framework for the Java platform. Following are some of the major benefits offered by the Sprin…

Java hibernate manytomany to manage user role

Example: one User have many roles and one Role have many users, and now we will have one User_Role table. We will have following situation: Action 1: insert roles Action 2: insert users and insert user_role Action 3: delete users We can us…

Hibernate Many to Many Join Table

Let’s say for instance we have a group of Students that wish to enroll in several University Courses. Storing the Students and Courses in a relational database is trivial, however, how do we express Students that are enrolled in Courses? T…