The Hibernate jargon, an entity is an autonomous object in the persistent Hibernate mechanism that can be manipulated independently of other objects. On the other hand, a component is subordinate to an entity and can only be manipulated with respect to that entity. For example, an Album object can represent an entity; But the Tracks object associated with the Album objects would represent a component of the Album entity if it is assumed that the tracks can only be saved or extracted from the database by the Album object. Unlike J2EE, Hibernate can switch databases
No comments:
Post a Comment