Satish Varma

Satish is post graduated in master of computer applications and experienced software engineer with focus on Spring, JPA, REST, TDD and web development. Follow him on LinkedIn or Twitter or Facebook

Spring – @Import annotation

In this guide we will see how to use the Spring @Import annotation, importing multiple configuration classes, and we will see difference between @Import...

Difference between @JoinColumn and mappedBy

In this tutorial we are going to see, what's the difference between @JoinColumn and mappedBy in @OneToMany mapping using JPA with Hibernate. 1. Join Column A...

Spring @Primary Annotation

In this tutorial, we will discuss on Spring's @Primary annotation with examples, @Primary is available in Spring Framework since 3.0 version. 1. @Primary annotation in...

Fix for “object references an unsaved transient instance – save the transient instance beforeQuery flushing” in Hibernate

When I am working with association in JPA with Hibernate, Error during managed flush is one of the common error often I have...

Hibernate/JPA – Default Column Values

In this tutorial, we are going to see how to set default column values to entity properties and in schema generation in JPA and...

Spring – Injecting Collections

Spring Framework supports injecting Java Collection types. In this tutorial we will see how to inject Arrays, List, Set and Map with examples. 1. Inject...

Spring Boot – Defining Beans in XML

Sometimes it necessary to integrate XML configuration into Spring Boot application. For example, some of your beans already defined in existing XML. In this...

Tutorial on Spring @Autowired

@Autowired is one of the key annotation in annotation based Dependency Injection. Since version 2.5, Spring provides the @Autowired annotation to discover the beans...

Using @Order in Spring

In this guide we are going to see about how to use @Order annotation in Spring. @Order annotation can be used on components or...

Spring JdbcTemplate – get Auto-generated Keys

Examples on how to get auto-generated primary key ids using JdbcTemplate and SimpleJdbcInsert in Spring Jdbc. 1. Getting Auto-Generated Key using JdbcTemplate 1.1. User Table CREATE TABLE...

Stay in Touch