Which is the best way to create an entity?
The Entity Construction Kit (ECK) is a module to assist developers with creating their own entity types. If you want to export your entity types to code for version control and deployment use the Features module. If you don't want to do this (i.e. take the long way) write your entity type code using Model module as an example to follow (essentially the same thing).