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.
6,403
questions
0
votes
1
answer
15
views
Android Room additional constructor parameter
I have an entity looking as follows:
@Entity(tableName = "my_table")
public class MyEntity {
@PrimaryKey(autoGenerate = true)
@ColumnInfo
private final Integer id;
@...
0
votes
0
answers
8
views
OpenCSV annotation disallowed in a JPA Entity Bean
I'd like to add some OpenCSV annotation in a JPA Entity Bean, but JPA rejects the OpenCSV annotation:
@CsvBindByName
@Caption("TransactionId")
@Column(name = "transactionId"...
0
votes
0
answers
16
views
How to predict the Subgroup of a new entity
I have created the subgroups (Group_ID) based on Name, DOB & Zip, If a new record comes in, it should checks the condition (DOB & Zip should be same & first three characters of name should ...
1
vote
0
answers
37
views
How can I solve this error with my Spring Jpa application?
I am having a problem with a Maven Spring app (I am a very beginner learner!). When I create:
@Bean
public PlatformTransactionManager getTransactionManager() {
return new JpaTransactionManager(...
0
votes
0
answers
14
views
Is there a way to create a domain in a Springboot starter?
I'm working on a spring-boot-starter and was wondering if there is a way to instantiate a domain object from an entity/repository after datasourceConfig in implementing application has run?
I know I ...
1
vote
0
answers
40
views
How to solve EntityMetadataNotFoundError: No metadata for <Entity> was found?
I am working on nestjs with typeorm,
In my app.module.ts I have this (it works):
TypeOrmModule.forRoot({
type: 'postgres',
host: process.env.DATABASE_HOST,
port: parseInt(process.env....
0
votes
0
answers
12
views
Catch exception from entity @PreUpdate
I have a SLSB with the code:
public void inReadRoles (Integer pUserID) {
System.out.println ("AmUserBeanBase inReadRoles");
Query q = em.createNamedQuery("User.findByUserid"...
0
votes
0
answers
34
views
Xcode preview is crashing trying to read a String inside of an entity inside another entity from Core Data
firest of all, sorry about my English, it si not my first language. Hope someone can help me.
I am trying to make a button that can edit an entity (jinete, caballo) inside another entity (collera), ...
0
votes
0
answers
10
views
ERD for user management - unsure how to define user type
I am looking to create an ERD that represents the user role management for a webbased application. The entities (objects) that are involved are as follows:
Operator
Company
Person
Partner
...
0
votes
0
answers
26
views
EF Core and Lookup table with multiple columns
I have the following entities as follows:
public class ParentOfAddress
{
public long HouseId;
-- some other properties
public HouseAddress address;
}
public class HouseAddress
{
...
1
vote
1
answer
30
views
Id Commande not populated on table Lignes Comandes
I tried to implement a method to add new commande so i create i entity Commande and Ligne Commande as below :
Commande Entity:
import java.util.Date;
import java.util.List;
import javax....
0
votes
0
answers
54
views
Symfony twig view and objects questions
I am new at doctrine/symfony, came from a .net world. I'm still trying to link my knowledge to this world. I found a "disturbance in the force", and I need some best practice advices.
Lets ...
0
votes
0
answers
58
views
Writing Spring boot's entities with kotlin, class vs data class for JPA
I would like to understand the best practices in creating Kotlin entities with JPA.
First, this is a part of my build.gradle.kts. I have added both plugin.jpa and plugin.allopen
plugins {
id("...
0
votes
0
answers
8
views
Passing a Room entity as Parcelable
I have an entity class User . I read the posts here and here suggesting that passing ArrayLists of this entity class between intents is a bad idea.
However, if I had a class UserCohort with the ...
0
votes
0
answers
14
views
Retrieve all the users from perticular team advanced find query MS CRM
I have to display all the cases which got created and resolved in last 7 days. for a Particular team. When I am retrieve from the advanced query for a team, it is displaying case assigned to team not ...
0
votes
1
answer
33
views
Embed a many to one Room DAO object with multiple occurence of single entry in two different spots in the data hiearachy
I have the following datastructure
Jobs includes a list of Workers and a list of Posters
Posters have a single worker.
I am able to get the list of workers and posters embedded into the Job object; ...
-2
votes
1
answer
20
views
is the member variables name defined in the Angular and Spring boot entity class should match?
is member variables names defined in the angular web page should match with member variables created in entity class in spring boot rest controller.
Angular:
export class Todo {
constructor(
public ...
0
votes
1
answer
23
views
How to create Android Room Dao with multiple seperate lists (both one to many and many to many)
I am building a datastore for a gig posting application. Users can post jobs to a job board and then multiple people can apply and multiple people can be hired. The jobs are broken down into posters....
1
vote
1
answer
43
views
Join entity in many to many not being persisted after applying "@Transient" to the corresponding entities and the join entity
the main idea of my setup is to manage the many to many relationship via repositories. That is why, in the following setup, all the relations are annotated as @Transient, since those sets should only ...
0
votes
2
answers
44
views
Symfony set `createdBy` and `modifiedBy` properties of entity
I want to automatically set the createdBy and modifiedBy properties of an entity.
To set these properties I use the doctrine lifecycle hooks prePersist and preUseras described here: https://symfony....
0
votes
1
answer
24
views
What's the proper way to update a child reference on a managed entity with ModelMapper?
I'm using ModelMapper to map DTOs to database entities through a REST/API Spring micro service and running into an issue when updating the reference to a child entity. In my service implementation I ...
0
votes
0
answers
6
views
Dashboard specify devices
In the customer dashboard I would like to specify the devices of the customer, but currently I can only do this via entity list, type "device" and then I have to select each device. Errors ...
-1
votes
1
answer
21
views
How much is it to process 4M scientific papers in Microsoft Text Analytics for Health?
I would like to obtain Entities for the text in 4M scientific papers and want to know what would be the very rough approximate cost.
0
votes
0
answers
30
views
Vercel - No metadata for "Entity" was found - TypeORM
i have a problem with my Node API (MySQL DB) and maybe on .ENV file for TypeORM configurations (I'm not using ormconfig.js/ts/json)
In my local, the API works 100%, and i can do whatever i want using ...
0
votes
0
answers
55
views
Why @GeneratedValue(strategy = GenerationType.IDENTITY) produces Duplicate Key exception
I inherited an implementation that throws :
ava.lang.IllegalStateException: Duplicate key
when I am processing the results of the JPA call.
My Entity code is :
public class JobMetadataEntity ...
1
vote
0
answers
30
views
java springboot: create an entity from the database in intellij
Beginner with java, I try to create an entity from a table of my database in intellij. I do this with the jetbrain documentation:
https://www.jetbrains.com/help/datagrip/generating-code.html#...
0
votes
2
answers
48
views
Is it okay to say that entity with one to one relation with aggregate root is not possible in DDD? instead it is a value object or aggregate root?
I am almost new to DDD, i have read books and watch pluralsight video from Steve Smith and Julie Lerman. I am quite confident that i understood the concepts except couple of things that stucked in my ...
-1
votes
0
answers
8
views
Can we do case-insensitive searches in Sqlite using EF Core 5?
For eg. in table there is a column id which is of type GUID so it has id some of them all are in lower but some of the values are upper case so while retrieve the data through Entity Framework, it ...
1
vote
1
answer
47
views
Symfony: is it fine to instantiate an entity in the controller?
One of the SOLID principles is Dependency inversion. As I understand it means that I shouldn't instantiate other classes in my code and pass them to the constructor. Is it a violation of this ...
1
vote
1
answer
68
views
Is it a bad practice to use mutable records for database entities? [closed]
C# 9.0 introduced records for more data oriented structures. I would like to use them for entity-objects that are used with some sort of ORM (like Dapper), because they provide a lot of useful ...
1
vote
0
answers
28
views
413 Request Entity Too Large -Gravitee
Registered a Java Rest api with gravitee. This api is for uploading the images to a minio bucket. I am getting the error:
413 Request Entity Too Large
I have already tried:
Add "Request Content ...
-1
votes
1
answer
34
views
Spring boot- dao pattern: how can we use a single dao for split table or do we need two seperate daos?
My spring-boot application uses DAO pattern to interacts with a Oracle as an application database. Database contains two same tables i.e. PROD & PROD-BAK . The columns are exactly the same. One ...
1
vote
1
answer
46
views
In a compacted Kafka topic, how to deal with relationships between entities?
Let's say I have a compacted Kafka topic and I populate it with entities. The topic has only 1 partition.
For this example I use Employees as the entity. An Employee may have a Superior.
These are ...
0
votes
0
answers
25
views
Combine multiple object mapper strings in java
I want to use the object mapper class in java to pick certain parts of an api request object to use in another request.
Request: {"access_instrument":{"id":"12345","...
0
votes
1
answer
24
views
Ursina problem with the priority of Entity
i have a problem with entity priorities.
I created two 2D 'quad' entities with different colors, but when they appear on the screen sometimes the color of one prevails and other times that of the ...
0
votes
1
answer
19
views
How to set lock mode when fetching with EntityValueResolver
In a Symfony application you can use the EntityValueResolver to automatically fetch an entity when declaring the controller route.
How can one set a PESSIMISTIC_WRITE lock mode for this fetch?
This ...
0
votes
0
answers
29
views
Jpa Entity Class Reflection
It is known that using a public or protected default constructor in an entity class is recommended when using JPA to enable a proxy class or class reflection.
However, since the Class.newInstance() ...
0
votes
1
answer
54
views
NotBlank validation error in float java (spring boot)
I'm trying to develop an API with an order model and one of the requirements in my model is "price" which takes a float instead of a string
this is the model
package com.api.order_control....
0
votes
0
answers
26
views
DOCTRINE - php symfony ORO - Property "AAA" in "entity" was already declared, but it must be declared only once
I have this code:
$this->extendExtension->addManyToManyRelation(
$schema,
'oro_course',
'teachers',
'oro_user',
['email'],
['first_name', '...
1
vote
1
answer
42
views
Should model extends entity in domain - data layer
In domain - data - presentation layer, there are model and entity. In my understanding, entity is only data field and model is data field that can have some logic like json mapper.
But, is model class ...
0
votes
0
answers
24
views
What is correct way of injecting a nullable entity parameter in symfony5?
Whenever I want to use an entity as a parameter (in this case SupportType) this is the quickest way:
/**
* @Route("/new/{type}", name="app_support_case_new", methods={"GET&...
0
votes
1
answer
105
views
How do I use one method for multiple DTO?
I have an Address entity as follows:
public class Address
{
public string? City { get; set; }
public string? Country { get; set; }
public string? Contact { get; set; }
public string? ...
-2
votes
1
answer
50
views
How to conceive a Symfony entity? --> Update of 2 tables in DB with one Symfony form
I create a Symfony app about "X-Files".
I have several entities among which "Episode" and "Charactor".
Episode has a ManyToMany relation with CharActor.
When I add an ...
0
votes
1
answer
30
views
JPA Entity Data foregin key
I have data model in microservices A which will be referenced in the microservice B .How to share the model from A to B.
Will it work with sharing the entity as library to microservice B
0
votes
0
answers
18
views
Symfony Make Entity issue
Class name of the entity to create or update (e.g. DeliciousPuppy):
test
created: src/Entity/Test.php
created: src/Repository/TestRepository.php
Entity generated! Now let's add some fields!
You can ...
0
votes
1
answer
21
views
Persist new parent entity only if linked entity already exist in the database with JPA
I have an entity Video that needs to be written to a database with Java/Hibernate. Each video can have one or more tags. Currently, there are only certain tags that can be used (predefined and managed ...
0
votes
1
answer
17
views
Querying post fields in Piranha
I'm trying to work out how best to filter Posts by their Fields/Regions in Piranha without loading them all and then performing the filtering.
At the moment I have the following:
var posts = _db.Posts
...
1
vote
1
answer
28
views
How to read this ER relationship?
I just had a quiz and one of the questions was to pick the correct description of the following ER diagram (with A and B instead of E1 and E2):
The correct answer was:
Every instance of data type A ...
0
votes
1
answer
680
views
BeanCreationException error creating Repository with Spring Boot - "Not a managed type" error
I am trying to learn Spring and most particularly Spring Boot, and I have made a set of classes, starting with a main, a model class and a repository class. However, when I try to start the main app, ...
1
vote
2
answers
70
views
How to define domain entity model in frontend and backend?
I am studying clean architecture right now, and I have a question about domain entities.
Suppose I am building a mobile application, there will be two types of services in my opinion.
First type: ...