Skip to content

Instantly share code, notes, and snippets.



Last active Nov 2, 2017
What would you like to do?
Kotlin data class + JPA
package org.sapzil
import org.springframework.boot.autoconfigure.SpringBootApplication
open class Application
group 'org.sapzil'
version '1.0-SNAPSHOT'
buildscript {
ext.kotlin_version = '1.1.51'
repositories {
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.springframework.boot:spring-boot-gradle-plugin:1.5.7.RELEASE"
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'org.springframework.boot'
sourceCompatibility = 1.8
repositories {
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile "org.springframework.boot:spring-boot-starter-data-jpa"
compile "com.h2database:h2"
testCompile "org.springframework.boot:spring-boot-starter-test"
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"

This comment has been minimized.

Copy link

@Chris0123 Chris0123 commented Nov 2, 2017

How's terrible!!!!!It let me full of throw.><

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.