An Extension Function is a function that is attached to an existing class and are invoked like member functions. For this post, we are using Kotlin 1.1.
PhoneGap – HelloWorld Example via PhoneGap CLI
This post demonstrates how to create a very simple example of PhoneGap application via PhoneGap CLI.
PhoneGap – Build as Android App Online
This post demonstrates how to build online a PhoneGap project as an Android app. This uses an existing project created from a previous post PhoneGap – HelloWorld Example via PhoneGap CLI
Java – 3 ways to implement a Generic Interface
A Generic Interface is an interface that makes use of formal type parameters. It uses Generics. There are 3 ways to implement a Generic Interface.
Groovy – @Sortable example
Groovy @Sortable is something similar to Java’s Comparable interface.
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.
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.
Kotlin – Compile and Run from Windows Command Line
This post demonstrates how to compile and run Kotlin from Windows Command Line. For Unix/Linux, it should be quite similar.
Kotlin – How to create Maven project for Kotlin
This post demonstrates how to create a Maven project for Kotlin as as library jar. Instead of a Java codes, we’ll only have Kotlin codes.
Kotlin – How to use your Kotlin library in Java Maven projects
This post demonstrates how to use a Maven dependency written in Kotlin in a Java Maven project.