Quote:
hence Wanted to know if there is any configuration that is done in hibernate 2 for this to happen ,which I missing. Secondly is that possible in hibernate 4
I'm not aware of any such setting. But then, it's not very clear what the problem is. I understand that you can't change the DB schema, but the read-only View still needs a unique identifier or a combination of columns so that you can reference each individual row. I'm not sure how Hibernate 2 worked, I've never actually used this very old version. But if you want to upgrade, you have to provide such a unique identifier.