https://kotlinlang.org logo
Title
l

luisvt

01/04/2018, 12:13 AM
is there something similar to
Groovy on Grails
for kotiln?
n

napperley

01/04/2018, 12:32 AM
Nothing that can be found. Nearest match is Spring Boot ( #spring).
g

gps

01/04/2018, 8:24 AM
I quite enjoy using Ratpack - with a bit of work, works rather well with Kotlin
k

kenkyee

01/04/2018, 10:41 AM
Grails does a ton of stuff... Their ORM is excellent for example and they also generate basic crud web pages. It really is like Rails in the groovy world... You can probably interop with Grails as well as it does with Java...
g

gregopet

01/08/2018, 12:53 PM
I was a long time Grails user (still supporting old projects, using Ratpack now); Grails' ORM is pretty good (for a Hibernate based solution anyway), you can use it standalone these days - you would have to mix Groovy and Kotlin code but that's not so crazy, and separating data access code is a good idea anyway
Sure, it's so easy to plonk a GORM query into your controller or service, but those query bits and pieces get lost around the code
lately even GORM offers data repositories into which you can group your query code - these would have to be written in Groovy in your case, and the rest can be Kotlin
....ahhh, I see the caveat is you still have to use Spring, though
still, perfectly possible with Spring Boot which supports Kotlin
Here's the link for using the Hibernate version outside of Grails: http://gorm.grails.org/6.0.x/hibernate/manual/#outsideGrails