https://kotlinlang.org logo
#getting-started
Title
# getting-started
c

chb0kotlin

02/15/2018, 7:10 AM
Ok, got it - I just am not used to
Any
and what that means
Copy code
val all = classRepo.findAll().map(AclClass::clazz)
            val reflections = Reflections(this.javaClass.`package`.name)

            val entities = reflections.getTypesAnnotatedWith(Entity::class.java) - all
            
            entities.map{AclClass(it)}.forEach { classRepo.save(it) }