Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Typed class User extends DataModel {
- static String dbname='mongo1'
- static String collection = 'people'
- String name
- Address address
- Blog blog
- static mapping = {
- fields: [name:'n', address: 'a', blog: 'b']
- embedded: [address]
- ref: [blog]
- indexes: [name]
- }
- }
Add Comment
Please, Sign In to add comment