For Eclipse Mars.2 Release (4.5.2), Lombok 1.16.16 works in generating those getters and setters. If you are new to using Project Lombok, chances are you’ve tried a wrong version of it for your Eclipse.
JPA – Optimistic Lock with @Version
In JPA, the use of @Version allows us to use Optimistic Locking wherein no real locks are actually applied to the database when updating records.
JPA – How to use @Embeddable and @Embedded
In Java Persistence API (JPA), a class can either be an @Entity or a value type. If a class is an @Entity, it is a persistent class. It represents a database table (or set of tables). If a class is a value type, it is not a persistent class. It may not represent a database table or a set of database tables. It may be used as a reusable component whose properties are used across multiple tables.
Maven – Create an executable jar
This post demonstrates how to create an executable in Apache Maven using maven-shade-plugin plugin.
JAXB Pre And Post-processing with Unmarshaller Listener
This post shows how to perform JAXB pre and post-processing with Unmarshaller Listener. For instance, you may want to compare the contents of an object before and after you unmarshal an XML. Another use-case is when you may need to
Convert the PEM files to a PPK files using PuttyGen
This post demonstrates how to convert private key .pem files generated and downloaded from AWS when creating an EC2 instance to .ppk files that are supported by putty.exe for SSH access.
JavaScript – Convert Function to String and Back
This post demonstrates how to convert a JavaScript function to string and using the same string to declare and execute a method dynamically.
Spring Boot – How to use @Conditional in your own codes
This post demonstrates how to use the @Conditional annotation which is the workhorse of Spring Boot’s automatic configuration. You may also use this technique in your own codes.
Spring Boot – Embedded ActiveMQ
This post demonstrates how to embed an ActiveMQ instance in Spring Boot and produce/consume messages with a simple example.
Golang – Return multiple values from a Function
In Golang, we can return more than one value from a function, but this feature is not unique to the programming language. Other languages can do this too. Golang Function Declaration To Return Multiple Values Golang’s ability to return multiple