Skip to content

Instantly share code, notes, and snippets.

@kevintanhongann
Created March 8, 2019 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevintanhongann/69383c3387cb049ee72a0e2216cb4c0e to your computer and use it in GitHub Desktop.
Save kevintanhongann/69383c3387cb049ee72a0e2216cb4c0e to your computer and use it in GitHub Desktop.
example-micronaut-gorm code snippets 2
package example.micronaut.gorm.domain
import grails.gorm.annotation.Entity
@Entity
class Person {
String name
String email
static constraints = {
name nullable: false
email nullable: false, email: true
}
static mapping = {
autoTimestamp true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment