janvladimirmostert
11/14/2016, 3:33 PMval emf = Persistence.createEntityManagerFactory("default");
fun createEntityManager(): EntityManager {
return emf.createEntityManager()
}
Whenever you want to do a persist / merge, create an entity manager or do something like I've done with the transaction wrapper.
For VertX, start writing it in Java according to the VertX docs, then translate it to Kotlin, if you just copy and paste an example, it'll get very confusing quickly, especially if the examples you're using contains a lot of method extensions.