Setting Entity Relationships

The RequestBean.createVendorPart business method
creates a VendorPart associated with a particular Vendor. The EntityManager.persist method is
used to persist the newly created VendorPart entity
to the database, and the VendorPart.setVendor and Vendor.setVendorPart methods are used to associate the VendorPart with
the Vendor.