Guest User

Untitled

a guest
Jul 20th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. @Typed class User extends DataModel {
  2. static String dbname='mongo1'
  3. static String collection = 'people'
  4.  
  5. String name
  6. Address address
  7. Blog blog
  8.  
  9. static mapping = {
  10. fields: [name:'n', address: 'a', blog: 'b']
  11. embedded: [address]
  12. ref: [blog]
  13. indexes: [name]
  14. }
  15. }
Add Comment
Please, Sign In to add comment