Questions tagged [entity-relationship]

An entity-relationship model (ERM) is an abstract and conceptual representation of data, information aspects of a business domain or its process requirements. Ultimately ERM is being implemented in a database.

Entity-relationship modeling is a database modeling method, used to produce a type of conceptual schema or semantic data model of a system, often a relational database, and its requirements in a top-down fashion. Diagrams created by this process are called entity-relationship diagrams, ER diagrams, or ERDs.

The main components of the ER diagrams are the entities and the relationships that exist among them. For example with the original notation, in the relational databases tables are shown as boxes, its attributes as ovals and their relations with other tables with lines.

The three schema approach to software engineering uses three levels of ER models that may be developed:

  • Conceptual data model is the highest ER model, that contain least granular detail but establishes the overall scope of what to be included in the model set.

  • Logical data model contains more detail than the conceptual ER model. Operational and transcational data entities are defined.

  • Physical data model - one or more such models can be developed from each logical ER model. Normally developed to be instantiated as a database, therefore each physical model must contain enough detail to produce a database.

2962 questions
0
votes
1 answer

Minimum Cardinality in ER diagram

I want to know if this depiction is right or not, If so why there is a partial constraint over the department entity and not the employee. because the way I depict it is that the employee may or may not participate in managing the department so the…
hady ayman
  • 23
  • 2
0
votes
1 answer

Exception while Initializing for Singleton DBInitService

While I was running my app, the exception was thrown as follows: 严重: Exception while loading the app 严重: Undeployment failed for context /wren6-fp 严重: Exception while loading the app : jakarta.ejb.CreateException: Initialization failed for…
0
votes
0 answers

Model Entities that share properties in Microservice Architecture

Problem statement In the real world, we have the Entities Assets (Images, Videos, Documents) and Collections (a set of Assets). Now, both these entities can have Categories (and a bunch shared properties more). We are unsure how to model this. Here…
0
votes
0 answers

Springboot populate DTO class in one query

I have a springboot application managing a User, UserProfile and Roles A user can have one profile only (i want a unidirectional relationship, i only need to navigate from User -> UserProfile) A User can have many "Roles" (authorities), i want a…
user7616817
  • 357
  • 4
  • 18
0
votes
0 answers

How to generate tables in SQL Server database using ER Studio in a specific schema?

I am able to connect to my SQL Server database using ER Studio and also able to create tables with relationships in DEFAULT schema. But I am not able to achieve this functionality in a different schema.
koshur
  • 124
  • 1
  • 9
0
votes
0 answers

How to find all @Entity annotated files that a Gradle module depends on?

Problem: I need to find out which database entities (and fields of those entities) are used by a certain Gradle module (which has multiple dependencies to other modules which contain those entities). I need to do this because some entities in the…
0
votes
1 answer

User-role-team based packages cannot manage authorization above the team's scope

In my application, an organization has multiple events, and a user can have multiple roles in different events, Until now it's all good I can just do a pivot relation btw user_id, role_id, event_id, But the problem is that I have some roles that are…
0
votes
1 answer

Hibernate @ManyToMany relationship using bridge entity?

I designed a many to many relationship by using 2 OneToMany relationships as shown below: In here, a user must have at least one or many roles. a role can be belonged no user or many users. In this scene, is this ER diagram relations true? And,…
Jack
  • 1
  • 21
  • 118
  • 236
0
votes
1 answer

Why is core data is not retrieving relationship values through extension?

I have 2 entities in Core Data, Plans and Places. They are connected with one-to-many relationship (one event in a plan ("Space Mountain"), to many in Places "Magic Kingdom")). The expectation is the user can tap on an item, like "Space Mountain",…
JR10
  • 11
  • 3
0
votes
1 answer

EER : Superclass/subclass Entity relationship, primary key mapping

Here is the scenario. STUDENT, FACULTY are sub-classes of PERSON entity, and they have specialized attributes. Normally, we store common attributes in PERSON table (with p_id as pk) and store specialized in the subclasses. We map the subclass to…
Firefox
  • 941
  • 2
  • 14
  • 22
0
votes
0 answers

How to draw this ER diagram

How to draw ER diagram for this. Players plays game.game is controlled by refree. Organizer organizes game and pay to refree. Refree is appointed by federation. Assume your own sets on attributes. I am trying to see what the er diagram is for this…
0
votes
0 answers

How do I use SpaCy to capture number to noun relationship here?

I use the following function to identify that token is connected to the number: def get_number_relationships(sentence): doc = nlp(sentence) print(doc) for token in doc: #print(f"--- TOKEN {token} ---") for t in…
0
votes
1 answer

AspNet Core Api Ef Core comes with extra related tables?

When I include the Categories table in the seller table with Ef Core, it comes with Product in the Category, I just want the category table to come. There is an overload of data. How can i solve it. Why does Products also appear in Category under…
0
votes
2 answers

@OnetoMany relationship only accepting one object instead of a list in the column [SPRING]

I'm having trouble with a relationship between two attributes (owners and pets: one owner should be able to have many pets) in spring, this is my code: @Entity @Table(name="owners_table") public class Owners { @Id …
vitoriac
  • 79
  • 1
  • 1
  • 7
0
votes
1 answer

How do two many-to-one relationships work inside a ternary ERD diagram?

The arrows represent the many to one relationships. From my understanding of the diagram: Suppliers can only relate to one relationship of car and part. For example Tom's warehouse can only sell a steering wheel to a Ford truck. But Tom's warehouse…