added support for class annotations in main entity class