it is must to be identified each object (row of table) uniquely in hibernate.so each object gets its uniqueness using either primary key or composite primary key.if you dont specify primary key or composite key in a table , then you can form composite key using all columns of a table.