Hello Sumit,
I am getting this exact same error with my data entities. I have created quite a few of them and at first they all compiled properly. Just from today morning my Project Build is failing and the error message shows something similar to this.
Can you kindly explain in details what exactly you did to resolve this issue?