entity Questions

4

Solved

I'm using Entity Framework 4.1 Code First. In my entity, I have three date/time properties: public class MyEntity { [Key] public Id { get; set; } public DateTime FromDate { get; set; } publi...
Bronchiectasis asked 12/4, 2011 at 18:34

3

Solved

I build a form with entity type like this: $form = $this->createFormBuilder() ->add('users', 'entity', array( 'class' => 'UserBundle:Users', 'query_builder' => function(EntityReposit...
Becerra asked 10/12, 2011 at 11:50

1

I have a database first model in my project. The 3 tables Document, DocumentItem and Product are imported from the database. I want to create a new Entity named Order that joins some fields of the...
Steffen asked 21/5, 2018 at 9:33

3

Solved

Should the ID of your Entity be long (primitive type) or Long (object type)? The ID is the primary key of my table and is never 'null' in the database. My co-workers suggest to use an Object Type ...
Aftereffect asked 6/12, 2013 at 10:34

5

Solved

Anyone figured out a good way to pull encrypted values from db through entity framework 4? I got a MySql db with some columns encrypted with des_encrypt and need to be able to get those values as ...
Eachern asked 21/7, 2010 at 12:16

2

I'm working with php, and I have two entities Message and Post. The post is an attribute in the message entity and it's supposed to be a one to one unidirectional relation. But when I call message-...
Barneybarnhart asked 20/4, 2018 at 17:31

1

Solved

In a bidirectional mapping between entities (e.g. @ManyToOne ↔ @OneToMany), the counterpart needs to be synchronized on every change, especially when using a 2nd level cache. This is usually d...
Stanwin asked 20/4, 2018 at 15:12

2

Solved

What is the difference between the two if any? Should one or both be used on an entity?
Cano asked 19/10, 2009 at 18:53

6

Solved

I have two tables - one containing Address and another containing Photographs. The only common field between them is the PersonID. These were mapped to two POJO Classes Address and Photo. I was abl...
Graubert asked 6/8, 2012 at 3:39

3

Solved

I have a single collection into which I am inserting documents of different types. I use the type parameter to distinguish between different datatypes in the collection. When I am inserting a docum...
Mccutchen asked 19/3, 2018 at 6:56

1

Solved

My Xml code looks like this <!-- ************************************************************************ --> <group title="Test procedure FBlock ablock"> <case ident="Init" title...
Rocher asked 21/3, 2018 at 17:20

3

Solved

I have generated my POCO entities using POCO Generator, I have more than 150+ tables in my database. I am sharing POCO entities all across the application layers including the client. I have disabl...

2

Solved

I have an entity OrderItem that has OrderId and ProductId integer fields and these two fields form the identity key/primary key for this table. I would like to use OData/Web API to expose such enti...
Entrain asked 20/9, 2012 at 8:47

2

Solved

I'm trying to understand Best Practise for relationships between entities and aggregates. Imagine a design where you have a Product Aggregate, made up of of two entities: Aggregate Root: Product ...
Stimulate asked 9/3, 2018 at 20:8

1

I am using Wildfly 10. I am trying to bind an entity to a jsf page and save it with jpa to my db. I am getting a javax.servlet.ServletException: javax.ejb.EJBException: java.lang.IllegalArgumentE...
Daliladalis asked 7/3, 2018 at 13:5

1

Solved

I have a form containing some classics fields, and a drop-down list of Users Entities (handled with AngularJs, not with a classic form view). When I submit the form, the whole object (and the User ...
Forbidden asked 22/2, 2018 at 17:15

7

Solved

I have a Property that is an IEnumerable public IEnumerable<string> ChangesOthersResult { get; set; } I need to collect all values from ChangesOthersResult and post from a view back to the...
Auctioneer asked 19/10, 2012 at 20:28

4

I used to use Netbeans wizard (version 6.7.1) to generate entity classes from database. Now I want to look for an independent tool (script, command line tool...) that can do the same task, because ...
Cocktail asked 12/5, 2011 at 2:14

0

I'm following this tutorial https://dev.mysql.com/doc/connector-net/en/connector-net-tutorials-entity-framework-winform-data-source.html for create model from Mysql but after step 5 when i cl...
Organization asked 31/1, 2018 at 16:3

1

Solved

I'm using lombok project with Entity here is my example : package com.company.entities;//<---------Note the package import javax.persistence.Entity; import javax.persistence.Id; import lombok...
Macaroon asked 18/1, 2018 at 18:50

2

Solved

I understand the appeal of using the data-driven Entity-Component System for game development. Naturally I am trying to find other areas to apply this paradigm. As I am about to embark on developin...
Neumark asked 16/3, 2013 at 13:24

1

Solved

In my xcdatamodel two new fields, byTitleIndex and compoundIndex, are showing under Fetch Index Elements. I have not seen this section before in Xcode. What is a Fetch Index Element?
Annabelannabela asked 6/12, 2017 at 0:16

3

I'm working on my first DDD project, and I think I understand the basic roles of entities, data access objects, and their relationship. I have a basic validation implementation that stores each val...
Abeabeam asked 15/6, 2009 at 20:51

1

Solved

Let's say that I have a Car entity: @Entity public class Car { @Id @GeneratedValue(strategy=GenerationType.AUTO) private Integer id; How does spring know what value to autoincrement when I a...
Pearliepearline asked 6/12, 2017 at 14:15

5

Solved

I have this Entity defined: <?php namespace Apw\BlackbullBundle\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; /** * Categories * * @ORM\Table() * ...
Duiker asked 25/2, 2015 at 2:27

© 2022 - 2024 — McMap. All rights reserved.