O'Reilly logo

NHibernate 3 Beginner's Guide by Gabriel N. Schenker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Elements of a model

A model is the attempt to describe as well as possible, and as detailed as necessary, the reality of a certain domain. A model consists of various parts that we are now going to inspect in detail.

Entity

An entity is an object that is uniquely identifiable by a combination of its attributes and has a well-defined lifespan. It starts to exist at a well-defined moment in time, it can also be destroyed or terminated in such a well-defined moment in time. Often, the entity contains an ID or key attribute, which is used to uniquely identify it.

Two entities of the same type and having the same identifier are considered to be the same entity.

In a model, we call those types of objects entity, whose identity and life cycle is of importance. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required