add equals and tostring for PortMapping
support injecting the owning entity