To map a database view with no primary key, in hibernate xml mapping
I have created a view which will be used for fetching the data only(readonly) View : Grid_View > My Hibernate hbm file <hibernate-mapping> <class name="hibernate.domain.View" table="Grid_View" mutable="false"> <property name="ACCT_BR_CD" type="string"> <column name="ACCT_BR_CD"/> </property> <property name="ACCT_NO" type="string"> <column name="ACCT_NO"/> </property> <property name="LGL_ENTY_NM" type="string"> <column name="LGL_ENTY_NM"/> </property> <property name="CUST_CTRY_CD" type="string"> <column name="CUST_CTRY_CD"/> </property> <property name="ACCT_SRC_SYS_CD" type="string"> <column