Walaa wrote:
You can map an entity to a database table,and select which fields that should be mapped into the entity and thus exposed.
In other words you can remove selected fields from being mapped into the entity class.
this i know...but it does not enable me to create 2 partial entities that are mapped to the same table.
i'll give u an example:
i want an entity of type person and an entity of type organization. they are kept in the same table in the database...however person has a couple of more fields such as lastname and marriage status and number of children.
i would like to create a person entity and an organization entity.
i don't think data base decisions should have to be reflected in the application.