Questions tagged [entity]

In computer science an entity is an object which has an identity and can be uniquely determined, holds storable information or can be processed. As the term has a very abstract and general meaning prefer to use this tag only in conjunction with other more specific tags.

In computer science an entity is an object which has an identity and can be uniquely determined, holds storable information or can be processed. The term does not apply to a specific technology but has a more abstract meaning.

An entity is one building block in an entity-relationship model (ERM) to describe how data are modeled in an information system.

Often used specific meanings for "Entity" on Stack Overflow

  • A class or instance of a class which is mapped to a relational database by Microsoft's Entity Framework
  • A data object in Apple's iOS Core Data Framework

Links

6421 questions
2
votes
2 answers

What is the use of @Entity annotation when entity not included in persistence unit

I have few JPA annotated entity classes in my sample application i am building and almost all are specified in the persistence unit to be managed by the JPA provider. For those entity which are annotated but not included in the…
iCrus
  • 1,210
  • 16
  • 30
2
votes
1 answer

Entity Framework (Add/Create) Object reference not set to an instance of an object... but it is?

I'm using entity framework to access an exsisting database. I can access the data but when I try to add new data I get a NullReferenceException "Object reference not set to an instance of an object", but it is? The DB connection is fine, I can…
user1638662
  • 443
  • 1
  • 4
  • 7
2
votes
1 answer

deleting entity in a onetomany relationship

I'm having a problem deleting a child entity item. Everytime I delete it nothing happens and the association between the parent and the child is still there. I've searched through the net and some people suggest using orphanremoval but I've tried it…
user1761235
2
votes
2 answers

Database relationship issue

I am having a issue in identifying the relationship I have the following scenario A teacher can review many paper A paper can be review by 4 teachers A teacher can create a paper A paper can have statuses (under review, approved) A subject head…
mdanishs
  • 1,996
  • 8
  • 24
  • 50
2
votes
2 answers

EntityFunction.TruncateTime not working in my query

I am using Linq to entityframework to query some infomration. I am trying to use entityfunction.truncatetime and it doesnt seem to work as expected. here is my sample query From d In Request Where d.Requestor= "XXXX" And d.ProcessedFlag = "N" Select…
Aradana
  • 51
  • 1
  • 5
2
votes
1 answer

How to store the modifier user in a Symfony 2 entity

I would like to have entities log the user (preferably his ID) that has most recently modified an entity. I think a pretty entity has a getModifier() method but has no setModifier() since that is handled by the class as an internal affair. I'd use…
Levente Pánczél
  • 1,895
  • 2
  • 14
  • 16
2
votes
1 answer

CRM 2011 - Find a record by a field's value in C#

I have a basic problem. I need to find the guid of a record with a field set to a specific value. Like finding the only record with its "favouritecolor" attribute set to "red". (the field is unique, no double same colors) The record I'll be…
tdgtyugdyugdrugdr
  • 786
  • 4
  • 13
  • 31
2
votes
1 answer

doctrine entity manager doesn't return related rowset

I made one to many relation in my entities. when try to get related rowset it brings empty result and when try to find parent row from child entity it throws Entity was not found exception here is my initDoctrine $classLoader = new…
2
votes
2 answers

What is the best way to model an entity that can have different attributes?

Let's say I am programming a MMORPG. I modeled a Entity character that can have a multitude of attributes like coating, strength, color and so on. Because I do not know these attributes in advance (what and how many of them), I thought I create an…
AME
  • 2,499
  • 5
  • 29
  • 45
2
votes
2 answers

CDI not working in validator

I want to inject the Servlet Context to the Validator placed in the Entity. But null is returned... Example: @Entity class Test{ @TestValidator() int something; } TestValidator implements ConstraintValidator{ @Context ServletContext ctx } The…
ton
  • 355
  • 3
  • 13
2
votes
3 answers

EJB, JPA business method into entity

i have got uml diagram from projectant and into entity i have got method getTotalPrice() So this is my class: public class UOrder { @OneToMany private List products; .... public BigDecimal getTotalPrice(){ BigDecimal b =…
Łukasz Woźniczka
  • 1,625
  • 3
  • 28
  • 51
2
votes
1 answer

Retrieve doesn't retrieve all attributes with plugin in dynamics crm 2011

I'm trying to get the fields of a parent entity, but I don't get all the fields, only some of them. Entity parentEntity = service.Retrieve("entityname", id, new ColumnSet(true)); While debugging, I see some of the customly defined attributes of the…
tdgtyugdyugdrugdr
  • 786
  • 4
  • 13
  • 31
2
votes
1 answer

Sharing same (.edmx model) in multiple projects

I have created a database and converted the same in edmx/model in one of my ASP.NET sample projects. Now I am creating another project in which I want to use the same .edmx/model. I try to copy the edmx model in second project and then adding up(Add…
Incredible
  • 3,495
  • 8
  • 49
  • 77
2
votes
2 answers

Entity class without database?

Is it possible/practical to have an Entity class without an underlying database available? To contradict myself, I have a database(!) which can be accessed over jdbc, but it's proprietary and only supports a couple of methods -…
KarlP
  • 309
  • 3
  • 15
2
votes
0 answers

An item with the same key has already been added when setting a value to entity object

I have a SilverLight application which uses entity framework 4 for data access layer. I need to manually create some entity objects and later save to database. I have this peculiar problem. When Instantiate the object and then assign some values to…
1 2 3
99
100