Problem is that meta-model and entity's are not in same package.
When in same package then there is no error