JAX-RS @Path URI Matching Example in Java

JAX-RS @Path URI Matching Example in Java The @Path annotation identifies the URI path template to which the resource responds, and is specified at the class level of a resource. The @Path annotation’s value is a partial URI path template relative to the base URI of the server on which the resource is deployed, the context root […]

Oracle PL/SQL Before DELETE Trigger Example [screenshots]

Oracle PL/SQL Before DELETE Trigger Example Overview This Article will help you to understand “BEFORE DELETE TRIGGER statement” with Before DELETE Trigger Example and it’s detailed description. This statement specifies that Oracle will fire this trigger BEFORE the DELETE operation is executed. In real life scenarios, BEFORE DELETE Trigger mostly used for purposes like (1) […]

Oracle PL/SQL Before UPDATE Trigger Example

Oracle PL/SQL Before UPDATE Trigger Example Overview This Article will help you to understand “BEFORE UPDATE TRIGGER statement” with examples and it’s detailed description. This statement specifies that Oracle will fire this trigger BEFORE the UPDATE operation is executed. In real life scenarios, BEFORE UPDATE Trigger mostly used for purposes like, (1) Restrict Invalid Data […]

Rename Trigger

Rename Trigger This Article will help you to understand “RENAME Trigger” with example and it’s detailed description. ALTER TRIGGER statement used to RENAME the trigger.  Example We will create table “electricity_bill”.  Then create trigger “trg_rename_example” on electricity_bill table. We will check the trigger status from “USER_TRIGGERS” table. Then we will RENAME trigger by ALTER TRIGGER […]

Spring Interview Questions [2021]

Spring Interview Questions and Answers What is Spring? Spring is an open source development framework for Enterprise Java.Spring framework core concepts are “Dependency Injection” and “Aspect Oriented Programming”.Spring framework can be used in normal java applications also to achieve loose coupling between different components by implementing dependency injection and we can perform cross cutting tasks […]

Spring MVC Form Handling Example

Spring MVC Form Handling Example we will learn Spring MVC Form handling without using database. Here, we will use @Controler, @RequestMapping and @ModelAttribute annotations. To display the input form, we are going to use <form:form> tag of spring framework. Let’s see a simple example to store form data in a model object and display data of a list. Following is the content […]

Setter Injection with Dependent Object

Setter Injection with Dependent Object We can inject dependency of another class object into current bean using setter injection.In such case, we use property element. Here, our scenario is Employee HAS-A Address. The Address class object will be termed as the dependent object. Let’s see the Address class first: Address.java This class contains four properties, […]

Spring Setter Injection with Collection

Spring Setter Injection with Collection We can inject collection values by setter method in spring framework. There can be used three elements inside the property element. It can be: list set map In this example, we are using list that can have duplicate elements, set that have only unique elements and map that have both […]

Inject collection values by constructor

Inject collection values by constructor We can inject collection values by constructor in spring framework. There can be used three elements inside the constructor-arg element. It can be: list set map Each collection can have string based and non-string based values.Consider the example where one Person has multiple Hobbies. In this example, we are using […]

Constructor Injection with Dependent Object

Constructor Injection with Dependent Object This article contains detailed description with example on “Constructor Injection with Dependent Object” topic. Whenever we have HAS-A relationship between the classes, instance of dependent object comes into the picture. We create the instance of dependent object (contained object) first then pass it as an argument of the main class […]

Pin It on Pinterest