أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
How can we read or write data to a table which does not have a primary key using ORM frameworks?
No without primary key it will not work.
No, till today Hibernate doesn't support tables without primary key
No, Hibernate will not work without primary key.
Every table should have some unique key. The mathematical definition of a relation is a set of tuples. Furthermore, truly identical rows can not possibly have any meaningful semantics from the user's perspective.In some cases it may be sensible to go as far as mapping all columns of a view as a composite-id, but there is almost always some smaller business key.
The whole idea of hibernate maintaining unique objects within the session of the persistant context is via the primary key i.e. the Serializable key unless that table is a component table to the parent table
Yes it can work without primary key.
Hibernate not work without primary key. Primary key is neccessary. if you not specify a primary key then by default create a primary key. if u delete manualy , hibernate does't work.