Category: CODING

Dynamic Search Filter Using Querydsl [Spring Boot]

In this tutorial we will be creating a dynamic search filter. For any field it will generate sql query dynamically from the provided search parameter. We will generate a Dynamic JPA query for Branch entity class from the search parameter provided. Branch.class @Getter@Setter@Entity@Table(name = "BRANCH")public class Branch implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Basic(optional

Ascending Descending Order Java

Ascending order is the order in which the number starts from lowest and move to the greatest, whereas Descending order is the order in which the number start from the greatest and move toward the lowest. Check out the simple java code for ascending and descending of a give set of numbers. Ascending Descending Order

User defined methods in java

User defined methods in java: Functions are called methods in java. Like in C, java programming has similar user defined methods. There are basically four types of user defined methods. They’re: Methods with parameter and with return type Methods with parameter and without return type Methods without parameter and with return type Methods without parameter

Break and Continue Statement in Java

Break and continue statement in java : Like goto statement in c, there is break and continue statement to transfer control in the program. Whenever certain condition matches in the code, you may won’t to transfer your code’s flow to some other parts of the code. In such scenario, we use break and continue statement.

JAVA Examples

JAVA Programming Examples Learning programming is not only for being a programmer or some professionals, but also learning how to think. Here I’ve listed some simple programming examples which helps to learn java programming as well as how to think and be smart. These examples are commonly asked in Java Interviews and as well as

How to use Maven and why?

What is maven? Maven is used to manage the build, testing, and deployment processes. It can separate the unit tests and integration tests so you only run them when necessary and cut down on build time. In our previous topic the pom.xml file looks like this created by maven. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="" xmlns:xsi=""

Simple application using Java Collection Framework

Here we are going to develop Simple application using Java Collection Framework. Before you begin with this tutorial, make sure you’ve gone through previous_tutorial. In this tutorial, I’ve built simple console application that demonstrate how you can use collection in your project. When you’re done with this tutorial, you’ll have something like this: Simple application