Majority of time, software engineers, work with existing code. This article, along with few next, will cover techniques of making the exsiting code more testable, easier to maintain and possibly […]
This article will guide you through setting up Spring Security for a REST service created using Swagger specification. It also goes through integration testing of secure REST service. The code […]
This article shows how to use Open API specification and Swagger tools to build a REST service with spring boot and Maven. It describes how the Open API may be […]
This article goes beyond regular unit testing and describes various approaches for constructing spring boot integration tests. It explores configuration options and relies on @SpringBootTest annotation to construct rest controller […]
This article opens a Rest Controller testing cycle and presents an approach to @RestController Unit Testing with MockMvc and Mockito. In order to make the test quick, we will avoid […]
This article is a brief, conceptual introduction to REST. It describes what a REST service is, what are the main REST principles and answers when is a service truly restful. […]
This article shows entity setups in which Hibernate executes a Cartesian Product SQL query, which may cause serious performance problems for large data sets. We’ll also study a few typical […]
As Hibernate uses JDBC in the background, all the operations we perform on entites, like persisting, deleting or modifying state, result in a set of SQL queries being executed against […]
This article expands the topic of database related concurrency control in java using the Hibernate Framework. You’ll understand what Pessimistic Locking is and how to implement it with Hibernate. We’ll […]
As seen in previous article, Hibernate, by default, follows the JDBC approach of relying on DBMS default transaction isolation level allowing to override it for a specific transaction if required. […]