Misc. experiments in groovy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
957 B

9 years ago
  1. @artifact.package@/**
  2. * @artifact.name@
  3. * A domain class describes the data object and it's mapping to the database
  4. */
  5. class @artifact.name@ {
  6. /* Default (injected) attributes of GORM */
  7. // Long id
  8. // Long version
  9. /* Automatic timestamping of GORM */
  10. // Date dateCreated
  11. // Date lastUpdated
  12. // static belongsTo = [] // tells GORM to cascade commands: e.g., delete this object if the "parent" is deleted.
  13. // static hasOne = [] // tells GORM to associate another domain object as an owner in a 1-1 mapping
  14. // static hasMany = [] // tells GORM to associate other domain objects for a 1-n or n-m mapping
  15. // static mappedBy = [] // specifies which property should be used in a mapping
  16. static mapping = {
  17. }
  18. static constraints = {
  19. }
  20. /*
  21. * Methods of the Domain Class
  22. */
  23. // @Override // Override toString for a nicer / more descriptive UI
  24. // public String toString() {
  25. // return "${name}";
  26. // }
  27. }