Entity
Entity
It is a data model that is used for the graphical representation of the conceptual
database design. With a data model, it becomes easier to design the database, at
the first place, and secondly it is easier to understand later.
The Entity
An entity is a person, place thing or event for which data is collected, and
maintained. For example a library system may contain data about different
entities like Books and Member. A college may include entities like Student,
teacher and class etc.
1. Entity Type
The entity type can be defined as a name/label assigned to
items/objects that exist in an environment and that have similar properties.
It could be person, place, event or even concept, that is, an entity type can
be defined for physical as well as not-physical things. An entity type is
distinguishable from other entity types on the basis of properties and the
same thing provides the basis for the identification of an entity type. It is
also known as entity class.
Generally, the entity types and their distinguishing properties are
established by nature, by very existence of the things. For example, a bulb
is an electric accessory, a cricket bat is a sports item, a computer is an
electronic device, a shirt is a clothing item etc.
2. Entity Instance
A member of an entity class is known as entity instance or a
particular object belonging to a particular entity type. For example,
following table lists the entity types and their defining properties:
3. Entity Set
A set of all entities of a particular entity type in the database is called
an entity set or A group of entity instances of a particular entity type is
called an entity set. For example, all employees of an organization form an
entity set. Like all students, all courses, all of them form entity set of
different entity types
A rectangle is used to represent an entity type in E-R data model. For strong
entity types rectangle with a single line is used whereas double lined rectangle is
drawn to represent a weak entity type as is shown below:
Employee
Strong entity
Weak entity
Vehicle