class Assembly { AssetType assetType String name String description = "" boolean isActive = true static hasMany = [subAssemblies: SubAssembly, maintenanceActions: MaintenanceAction] static belongsTo = [AssetType] // static constraints = { // // } String toString() { "${this.name}" } }