Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class test {
- String testname;
- static hasMany = [testmanies:testMany]
- static mapping = {
- id column: "id", generator: "increment"
- }
- }
- class testMany {
- String testManyName;
- static belongsTo = [test:test]
- id column: "many_id", generator: "increment"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement