entity Questions

4

What is the difference between a DTO and an Entity? In details these are my questions: What fields should the DTOs have? For example my entity classes are: @Entity public class MyFirstEntity imp...
Soke asked 8/9, 2016 at 17:40

4

Solved

I am trying to insert data into a table having columns (NAME, VALUE) with Query query = em.createQuery("INSERT INTO TestDataEntity (NAME, VALUE) VALUES (:name, :value)"); query.setParameter("name...
Manteltree asked 11/4, 2017 at 13:36

1

Solved

I stumbled upon a strange error today. One of my Java Persistence Application programming interface (JPA) entities in Spring Boot application is not working. I tracked the problem down to a single ...
Clodhopper asked 16/12, 2021 at 16:29

7

Solved

I'm looking for an html entity code for a move symbol (with left right up down arrows). The same one that appears after cursor: move; is applied in css. Does anyone know if this is possible? I can'...
Diatessaron asked 5/11, 2012 at 16:6

2

Solved

Suppose I have to save an entity, in this case, Book. I have the next code: @RestController @RequestMapping("books") public class BookController { @Inject BookRepository bookRep...
Hawserlaid asked 20/10, 2021 at 1:22

8

Solved

I am using JPA in my application. In one of the table, I have not used primary key (I know its a bad design). Now the generated entity is as mentioned below : @Entity @Table(name="INTI_SCHEME_TOK...
Hemistich asked 2/11, 2012 at 7:20

6

Solved

I have an Entity class: @Entity @Table(name="CMC_MAP_SERVER_INFO") @NamedQuery(name="CmcMapServerInfo.getMapServer", query="SELECT c FROM CmcMapServerInfo c") public class CmcMapServerInfo impleme...
Why asked 28/1, 2014 at 5:15

2

Solved

I've created feature packages for every part of my application and my project structure looks like this : app core features main domain data ui feature1 domain entities entity1 entity2 ...
Jacquelinejacquelyn asked 23/11, 2020 at 15:56

2

Solved

I’ve been learning about JPA and I found that we can use entity graph since JPA 2.1. But I've not understood the merit of the entity graph yet. I know that one of the merits to use an entity graph ...
Helpful asked 29/7, 2015 at 14:33

1

Solved

I am using Drupal 9.0.5 as recommends Drupal site. I created a first entity content type, but I got the message "The entity type [entity name] does not have an "revision_created" ent...
Jellied asked 13/9, 2020 at 11:26

3

Solved

Im seraching over and cannot find answer. I have database role model in my application. User can have a role but this role must be stored into database. But then user needs to have default role a...
Barefoot asked 26/4, 2012 at 9:29

3

Solved

I may be utterly stupid, but I can not find out how to remove an entity that I have created. There are only options for adding entities and adding attributes in the .xcdatamodel.
Epps asked 13/9, 2012 at 14:53

3

I'm using Entity Framework 6 and "model first" in my solution, I separated my "Data Model" classes into another project, so that I can add reference to the "Data Model" classes without exposing my ...

6

Solved

Is there any way to get an entity ID before the persist/flush? I mean: $entity = new PointData(); $form = $this->createForm(new PointDataType(), $entity); If I try $entity->getId() at this po...
Aerology asked 7/5, 2012 at 16:24

1

I have 2 entities in a one to one relationship (it can be many to one but for this case I don't think it matters much) like such: @Entity public class User { @Id @GeneratedValue(strategy = Genera...
Fridell asked 15/3, 2019 at 17:22

3

Solved

I'm fetching some data in app from WordPress site successfully. Some entities like "&#8222" react native don't want to make like quotes and many more issues I have. Is there some way to make ...
Adenoidectomy asked 8/5, 2018 at 19:49

9

I am receiving the following Hibernate Exception: org.hibernate.AnnotationException: @OneToOne or @ManyToOne on cz.rohan.dusps.model.Switchport.konfiguracniTemplateAccess references an unknown ent...
Hybrid asked 8/9, 2011 at 14:38

1

Solved

I was having this issue in Symfony 5 : src/Entity/Order.php): failed to open stream: No such file or directory when I tried to make:entity and Order, was going to be the name of my new en...
Snowblink asked 16/3, 2021 at 18:18

4

Solved

I am using symfony2 with doctrine 2. I have a many to many relationship between two entities : /** * @ORM\ManyToMany(targetEntity="\AppBundle\Entity\Social\PostCategory", inversedBy="posts") * @...
Rubbish asked 20/2, 2015 at 9:46

3

Solved

I am querying an Entity(Applicant) which has multiple navigation properties, need to include two navigation properties (Worker and StatusType) in the include part of the query. Tried including one...
Carousel asked 4/5, 2011 at 13:38

1

how do you deal with url slug generation in DDD? Inside constructor? But entity relying on other service is not good. Pass as constructor argument? I think slugs shouldnt be there because they ar...
Forbear asked 12/3, 2015 at 13:26

6

I have searched stackoverflow on this problem and did find a few topics, but I feel like there isn't really a solid answer for me on this. I have a form that users submit and the field's value is ...
Columbian asked 27/9, 2010 at 14:57

2

Solved

I have the following use case. I have an invoice which has lines and a contact. I am wondering whether logic related to checking if all information is there (i.e. at least one line, and the contact...
Shrapnel asked 1/10, 2020 at 14:50

3

Solved

I am using Entity Framework, and I have a line of code that is taking a var and translating it back to an iint for the database. var record = context.enrollments.SingleOrDefault (row => row.us...
Senior asked 22/4, 2014 at 4:42

8

Solved

This might sound stupid to you, but why do I need to define an empty constructor in my @Entitys? Every tutorial I saw said : every entity needs an empty constructor. But Java always give you a defa...
Zoezoeller asked 7/8, 2013 at 9:4

© 2022 - 2024 — McMap. All rights reserved.