Created
June 28, 2018 17:12
-
-
Save mohashari/3d2fd88d3789df4b7e25d8aad1508950 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.codecika.kotlindemo.model.domain | |
| import org.hibernate.annotations.DynamicUpdate | |
| import javax.persistence.* | |
| import javax.validation.constraints.NotBlank | |
| @Entity | |
| @Table(name = "STUDENT") | |
| @DynamicUpdate | |
| class Student { | |
| @Id | |
| @GeneratedValue(strategy = GenerationType.IDENTITY) | |
| var id: Long = 0 | |
| @get: NotBlank | |
| var name: String = "" | |
| @get: NotBlank | |
| var address: String = "" | |
| @get:NotBlank | |
| var birthday: String = "" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment