Questions tagged as 'entidade-relacionamento'

2
answers

How to create relationship tables 1: N?

I have already studied database and understand how the diagramming of this type of relationship works, but now that I am trying to implement this database using sqlite3 and python I have seen some problems. I have the following database Theprob...
asked by 23.03.2017 / 18:22
1
answer

Relationship 1: N and N: M MongoDB parse-server

I have two questions on how to model a mongo database Home 1: In 1: N, with mongodb, should I save in the child entity the ID of the parent entity object, or the parent entity save an Array with the child IDs? In the Parse-Server I could not...
asked by 07.05.2017 / 16:20
1
answer

How to create a table Products that have different prices?

Someone would know how to map a Products table, and the product has different prices for each type of parcel that the customer chooses. For example I created a table called PRECOS and there is FK of the PRODUCT, but at the time of creating the f...
asked by 12.08.2016 / 02:29
0
answers

Mapping of list with sub list of tables for class

Hello; I have always had a question in this mapping, but in the current project I need to resolve it. It's the following, I have a Message table and a user table. I need to relate the users to the messages seen, to detect if it is a new messa...
asked by 19.08.2018 / 17:04
0
answers

ER with implied relationship

I'm doing an ER where all tables have to have a "log" of who made a record, ie I have a user table that creates a particular record and in the registry has a Foreign Key that indicates the user who created it. My question is if I can leave t...
asked by 30.07.2018 / 16:35
0
answers

Data Modeling - Optional Relationship

I need to do a database modeling for the following scenario: A Task (which is a ticket, a service request) will always have a Address , which is where this task will be serviced. The Task can be opened for service on a Property (which...
asked by 11.06.2018 / 13:53
1
answer

Bank modeling with classes with relationship from n to n

Good morning. I'm modeling a company that has multiple branches. Basically I have information, of size, the organization chart of each size, and positions in the branches. For example Porte: Small 1, Small 2, medium, large, ... Item...
asked by 19.04.2018 / 16:37
2
answers

Create bidirectional relationship without using DTO?

Hello, I'm in a project and I need to do bidirectional relationship between two entities, the relationship is @OneToMany @ManyToOne , so far so good. But I wonder if there is any way to do it without using DTO? @Entity public class An...
asked by 01.07.2016 / 16:53