Advertisement
Guest User

Untitled

a guest
Aug 28th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. class test {
  2. String testname;
  3. static hasMany = [testmanies:testMany]
  4.  
  5. static mapping = {
  6. id column: "id", generator: "increment"
  7. }
  8. }
  9.  
  10. class testMany {
  11. String testManyName;
  12. static belongsTo = [test:test]
  13. id column: "many_id", generator: "increment"
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement