Questions tagged [entities]
Entity-relationship model (ER model for short) is an abstract and conceptual representation of data.
831
questions
0
votes
1
answer
23
views
Escaped XML in entity definition becomes un-escaped when entity is used
I have an XML file that contains an number of SQL queries stored as entities. Further down in the document, attributes reference these entities in order to associate which SQL query to bind an ...
0
votes
1
answer
22
views
How do I create a Jhipster relationship between an entity and two other entities using the same field?
I have three entities;
entity DamagedItems { }, entity Recipe { }, entity RawProduct { }.
In a scenario where the DamagedItems should capture both Recipes and RawMaterial in one field, let's say ...
0
votes
0
answers
26
views
Exclude certain entities from mogration in typeorm
I have the following problem.
In an application where I use typeorm I have entities, which are already in the database, and don't have to be synchronized.
But there are certain entities that are ...
0
votes
0
answers
52
views
My entity data model wizard is not showing new tables
I've created a database from scripts using Microsoft SQL Server 2019 and generated some classes in C# using Entity Framework. Now I've had to modify and add a number of new items to that database, ...
0
votes
1
answer
43
views
Relationship error for Entities in microORM and Next.js
When running my Next.js application in typescript, I get following error:
error - ReferenceError: Cannot access 'Member' before initialization
I found this specific error in the documentation: https:/...
0
votes
2
answers
32
views
Unicode decode doesn't work in change listener on Javascript
As you will see on the code below, the unicode decoder works on alert but when it comes to textarea listener, it doesn't work as expected, could you catch the problem?
<textarea name="" ...
0
votes
0
answers
31
views
How can you set a list as a query paramter? [duplicate]
I got this code with a little help from chattgpt. But it is not working. It always say it needs a int:
Exception in thread "main" java.lang.IllegalArgumentException: You have attempted to ...
0
votes
0
answers
228
views
Entity Framework Core - Detach related entities except if they are a parent entity
The problem I'm trying to overcome is that I'm trying to detach all entities in DbContext.ChangeTracker if they are not the principal entity that I'm changing to avoid inserting child items of a ...
0
votes
1
answer
37
views
Python: New Entity from Multiple Existing Entities
I'm currently working to modify some python code to make it do what I want, but I keep running into the same problem.
The python code gets Entities from a JSON file.
I have edited that JSON file to ...
-1
votes
1
answer
36
views
Determining if an entity is weak or not
I'm creating a relational database of a store and its stock of products.
In the brief, it says "products can be returned under agreed terms e.g. expiry date or manufacturers error", based on ...
0
votes
0
answers
27
views
Usage of domain services as data provider to entities and value objects
Let's say I have a domain which purpose is to evaluate financial instruments in a given currency. We can imagine having an abstract instrument class defined as follow:
Then we can have different ...
0
votes
1
answer
27
views
Can strong entity have foreign keys?
I want to identify this ER diagram's strong and weak entities. I doubt that can a strong entity have foreign keys. What are the strong entities and weak entities of this ER diagram?
0
votes
0
answers
41
views
Bidirectional ManyToOne/OneToMany
I think i miss misunderstood how bidirectional relation works in JPA.
Club Enitity:
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@Entity
@Table(name = "club")
public class Club {
...
0
votes
1
answer
60
views
How to make a search form and allow selections from other Entities ? Symfony 6.0.2
I'm trying to create a search form where the user can search for an event by selecting its city and category. So I would like to create two selections "city" and "category" with ...
0
votes
1
answer
198
views
DDD value object composite identifier
I was trying to understand DDD value objects and entities, and have a minor doubt in that. I've read in a lot of articles that value objects does not have identity. I wanted clarity on whether that ...
0
votes
0
answers
17
views
How to model an entity with a column that could contain different entity types on a database level?
I am not a database guru and I am facing a situation where I don't know how to model it on a database level.
I have different entities that represent social media targets and sources like telegram ...
0
votes
1
answer
527
views
Panache Equivalent to Hibernate Merge?
I'm looking to essentially do a Hibernate merge() or saveOrUpdate().
I'm new to Hibernate and Panache but my understanding is that Hibernate's merge works in situations where I wish to insert new ...
0
votes
0
answers
49
views
Replace absolute links to relative ones Drupal 8
There was a need to replace all links on the site with relative ones.
What is the best way to do this?
Tried with hook_link_alter or template_preprocess_html but I don't seem to understand how they ...
0
votes
1
answer
35
views
how to specify List of entites in an entity using JPA
I have two entities. A vulnerability can have multiple vulnerability identifiers.
@Entity
@JsonInclude(Include.NON_NULL)
@ApiModel(parent = ApprovableEntity.class)
public class Vulnerability {
...
...
2
votes
1
answer
67
views
Product properties should be inherited for variants but don't seem to load
I'm using a decoration for the product repository to extend the following function by adding streams (dynamic product groups).
public function search(Criteria $criteria, SalesChannelContext $...
0
votes
1
answer
507
views
Can a relationship be formed between more than 3 entities?
I am currently working on entity relationship diagram for a database and in that, there's an account and that account A and that can be of types say A1, A2, A3, A4, A5. Initially all of them are of ...
0
votes
0
answers
31
views
Multiple entity coordinate positions are offset
I set the coordinates of some entities to fixed positions, of course, according to the values I specified, but the displayed positions are chaotic and deformed. It seems that the entities will be ...
1
vote
1
answer
157
views
No configuration for database at org.telosys.tools.commons.dbcfg.DbConnectionManager.getConnection (line 76)
I am trying to get all entities (in STS) from an existing MYSQL data model.
I have been researching many tools, and finally decided to use 'telosys'.
This marketplace tool allows you to easily obtain ...
1
vote
1
answer
400
views
Flutter: Not able to use nested models with Entities. (Entities, Models, Equatable, Flutter, Dart, json_serializable,Json Serialization)
I have two file for a single data i.e Entity and Model. To separate the entire logic from each other and to follow best practices.
Whenever I am trying to use nested Entities and parsing through @...
0
votes
0
answers
311
views
Add prefix to id of entity
I am wondering whether or not it is possible to add a prefix to a value (in this case the primary key, the id) in ASP.NET Core.
I am using an abstract class with three implementations and I want to ...
0
votes
0
answers
35
views
Webbased DB visualizer wanted
I'm looking for a web-based tool to visualize entities of a database.
The idea is following:
You have different groups of entities. i.e. 5 main entity and each of the main entities have 5 child ...
1
vote
1
answer
299
views
Convert Unicode symbol to entity in HTML
My website content is based on an XML which I am getting from an external partner.
The XML code contains Unicode characters (sample: Δ) and my problem is, that my (UTF-8 encoded) website is currently ...
0
votes
1
answer
351
views
Generic service for Spring JPA inherited entities
I have a parent abstract class, which will act as a single table and hold all it's child classes data in it, example:
@Entity
@Table(name="users")
@Inheritance(strategy = InheritanceType....
0
votes
0
answers
85
views
Chatbot entities, python, json, how to implement it
I'm writing here to understand how to write my own entities file, and implement it into python.
{
"type": "question",
"entity": "entity-name",
"entity-type&...
1
vote
1
answer
74
views
How to implement domain entity and its business logic for dependent data
Let's say we have a stations and each station has many station machines and station machine can't exist without the station id.
Each machines can have various sockets and each machine is of particular ...
0
votes
2
answers
100
views
Convert entities when parsing XML to JSON using xml2js?
I'm using a class to convert xml to json for my project like so:
export class AccessionClass {
constructor(accessionFilename) {
this.accessionFilename = accessionFilename
this.accessionXML = ...
0
votes
1
answer
42
views
How to insert a record into entity based on an action on another entity?
I have two disconnected models. The first one is Event, which is in simplified form below:
public partial class Event
{
public int EventID { get; set; }
public string Subject { get;...
-2
votes
2
answers
110
views
How to write an HTML entity without it changing on my page?
I would like to showcase an HTML entity and the way its written in code next to it. I just cant find a way to write & without it turning to @ in my page. What should go with it so it is shown ...
2
votes
1
answer
93
views
Does an entity in TypeDB (formerly Grakn) need always a unique identifier?
I'm defining a schema for different persons in my graph knowledge base. A person entity is of course unique in its constellation of attributes. However, suppose just theoretically that we would have ...
0
votes
1
answer
669
views
How to convert HTML entities in a string to readable text in React Native?
I am getting the following string from an API which contains some html entities. I want them to be converted to readable text. How do I do it? Is there any in-built method in React Native to do the ...
0
votes
0
answers
596
views
Design entities to join three tables using a mapping table Using JPA
Please help me write entities the proper way, so that it can be easily fetched using JPA. I have a DB design as below image:
Table Design Structure
I have created entities
@Entity
@Table(name = "...
0
votes
0
answers
277
views
Merging named entities with spaCy's Matcher module
def match_patterns(cleanests_post):
mark_rutte = [
[{"LOWER": "mark", 'OP': '?'}, {"LOWER": "rutte", 'OP': '?'}],
[{"LOWER": "...
1
vote
1
answer
387
views
How can I feed multiple of 100 annotated files in training Custom NER model using spacy3
Currently I have prepared a Custom NER model where I can extract 15 entities. I have trained my model on single annotated file using config.cfg file by spacy3. Now I want to train my model again on ...
0
votes
1
answer
372
views
columnMetadata.enum.map is not a function
When compiling my migration for my NestJs app it's breaking and I'm getting the following error with no effective way to trace it:
columnMetadata.enum.map is not a function
My linter shows no errors ...
0
votes
1
answer
41
views
php replace between strings like „ or „ or „ or „
I like to php replace this String:
This String is called „Foo“ or „Bar“ but could be formatted as „Foo“ or even „Bar“ and many more combinations.
with some ...
1
vote
0
answers
22
views
PHP parse bad-syntaxed XML string containing un-encoded entities [duplicate]
I need to parse 1.000 elements like this one on a single XML string using DOMDocument but it complains about entities and syntax:
...
<sector
id="2058"
name="This ...
0
votes
2
answers
177
views
fiware NGSI-LD orion-ld context broker didn't send all entities for a type as expected
I filled a fiware orion-ld with ca 90.000 addresses (ID's like 'urn:ngsi-ld:address:Testtown:12345:Haus-Knipp-Str:15').
If I read all entities for type "Address" from orion-ld broker via url ...
1
vote
2
answers
366
views
DDD: Domain Objects Structure
I'm new to DDD and I want to clearly understand each domain object structure and role:
Aggregate Root:
1.1. The only contact point the client can interact with the domain objects, the client should ...
1
vote
1
answer
830
views
Are entities required for a NestJS backend?
NestJS encourages the use of TypeORM and entities to interact with database. I have experience with Express, but NestJS, TypeORM and their entities concepts are new to me.
Previously, when I worked ...
1
vote
1
answer
426
views
Rest service in SpringBoot expects a nested object in JSON from GET request
I am using SpringBoot. I have two entities, Users and Role. For each user record I want to assign a role.
In my entities I already have the relationship and the database is built as I want.
When I see ...
0
votes
0
answers
53
views
How to write a Linq to Entities query given a list of entities as parameter
I have 2 tables: Materials and Colors with two colums
Materials (guid and name)
Colors (guid and name)
One Material can have a lot of colors and a Color can be in a lot of Materials. (many to many ...
4
votes
0
answers
336
views
Understanding Ef Core's ChangeTracker with OwnsOne configuration
Using EF Core 5 and the ABP framework I have an entity of type System which has a owned type Property. Property itself is not an entity cause it has no identifier, just a value and a default value ...
-1
votes
1
answer
408
views
Symfony doctrine reverse engineering and Apiplatform
Is there a way to create Apiplatform enabled entities directly from database schemas?
I successfully create the entities using php bin/console doctrine:mapping:import "App\Entity" ...
1
vote
2
answers
837
views
DDD: Aggregate and entities relationship
I read some of the publications and threads about DDD. There are many voices about connection between aggregate and entities. I understood that aggregate should be as simple as possible (one entity ...
0
votes
0
answers
113
views
customize length of the password in dialogflow chatbot using regex entity
length of the password must be at least 6 characters while signing up using Dialogflow chatbot.
I have used system entity "any". But it is so generalized.
Webhook is written in flask python.
...