Last active
July 26, 2019 19:25
-
-
Save aronbalog/5266d76b985c1c34ffa404affc0244b6 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.example.demo.data | |
import org.springframework.data.mongodb.core.mapping.Document | |
import java.util.* | |
import javax.persistence.Id | |
@Document(collection="person") | |
data class Person( | |
@Id | |
val id: String = UUID.randomUUID().toString(), | |
val name: String | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment