func (o *Category) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}

	so := sparse.(*SparseCategory)
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.Description != nil {
		o.Description = *so.Description
	}
	if so.Name != nil {
		o.Name = *so.Name
	}
}
// Patch apply the non nil value of a *SparseCategory to the object.
Patch apply the non nil value of a *SparseCategory to the object.
// Patch apply the non nil value of a * SparseCategory to the object .
func (o *Category) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseCategory)
	if so.ID != nil {
		o.ID = *so.ID
	}
	if so.Description != nil {
		o.Description = *so.Description
	}
	if so.Name != nil {
		o.Name = *so.Name
	}
}
func ( o * Category ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseCategory ) if so . ID != nil { o . ID = * so . ID } if so . Description != nil { o . Description = * so . Description } if so . Name != nil { o . Name = * so . Name } }
Patch apply the non nil value of a *SparseCategory to the object.
Patch apply the non nil value of a * SparseCategory to the object .