Loading
Hiberante map a table view

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  How can you map a table (or view) with no primary key?


Ans)

Every table (or even view) should have some unique key. The mathematical definition of
a relation is a set of tuples. (Sets do not permit duplicate elements.) 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. (Note that Hibernate
does not require that this unique key be enforced by the database schema, of course.)



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

Hiberante map a table view


Hiberante map a table view

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free