Creating a new Spring Boot application that uses JPA is easy, straightforward, and does not involve complex configuration of any kind. You may have worked on other Spring Boot applications which you didn’t develop from scratch. Chances are those applications
Java – Override method to not throw Exception
Modify the method signature of the overriden method to make calling codes not to handle or declare the exception coming from that method.
Specify Non-default PostgreSQL Schema When Connecting Using JDBC
By default, we use the public schema when we connect to PostgreSQL. Some applications use multiple schemas to store data in the database. Therefore, they need to specify explicitly which PostgreSQL schemas to use. This post shows how to connect
How to Restore Your Custom MastHead in NetWeaver AS
Background Just as I was about to create Software Test Plan (STP) documents, I decided to restore the web application’s original header using the original masthead (.par) file when all of a sudden, the procedure did not yield the expected
Kotlin – Using Lists
This post shows how to create and use Lists in Kotlin. It will also briefly touch on mutable and immutable lists.
(Bad Practice) Wait Until All Threads Complete Execution in Java
This post shows an example of a bad practice I saw in one of my Java projects seven years ago. It also has a naive implementation of concurrency in Java, wherein it waits for all threads to complete. Moreover, it
Kotlin – SOAP Web Service Client Example
This post shows how to consume a SOAP Web Service using a client application in Kotlin. Although we need Java, we code everything in Kotlin. Create a SOAP Web Service in Kotlin Before creating a SOAP Web Service in Kotlin,
Very Slow XML Validation against XSDs with unique and key elements
This post shows that XML XSD validation with <xs:unique> is very slow, especially for a huge list of elements, e.g., 300,000 items. We are better off ensuring distinct values through Java codes. The problem also applies to <xs:key>. Worse, we can
Get First And Last Dates Of Current Quarter Using Joda Time
This post shows how to come up with the first and last dates of the current quarter using Joda time. Although we can do it in Java 8 and above using the Time API, Joda Time is an alternative. Joda
Truncate MySQL Tables Before DBUnit Loads Data
This post shows how to truncate a table in MySQL before DbUnit loads data via @DatabaseSetup. Truncating the tables in the @Before method does not work because DBUnit loads the data first via @DatabaseSetup before delegating calls to a @Before