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