| SimpleDB automatically creates indices for all attributes, thus there is no need to explicitly declare indexing in the mapping: | |
| {code} | |
| class Person { | |
| String id | |
| String firstName //automatically indexed | |
| String lastName //automatically indexed | |
| static mapWith = "simpledb" | |
| } | |
| {code} |