Fixed issue with Sql annotated classes.