How to create Entity, EntityDefinition, EntityHydrator and EntityCollection in Shopware 6?

How to create Entity, EntityDefinition, EntityHydrator and EntityCollection in Shopware 6?