I am working on hibernate in eclipse. I am executing simple \'From\' query. Here is the code
List list = sess1.createQuery(\"From Myview\").list(); System.
This happens when the id element in your hbm file is not a PK in your DB table. Hibernate treats all rows with the same ID as the same object.
Either change your id element to point to a PK column or use the composite-id element in case your table only has a composite primary key.