Created
April 14, 2022 12:33
-
-
Save jeffscottbrown/d2938f63c6b1182dca7f2111f92afcfa 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
class Person { | |
String name | |
Person parent | |
static belongsTo = [ supervisor: Person ] | |
static mappedBy = [ supervisor: "none", parent: "none" ] | |
static constraints = { supervisor nullable: true } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment