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