Questions tagged as 'relacionamento'

3
answers

Doubt with table relationship

Good evening I have the following BD in MySQL CREATE TABLE IF NOT EXISTS 'cad_cliente' ( 'id_cliente' smallint(5) unsigned NOT NULL, 'nome_cliente' varchar(45) NOT NULL, 'nome_dr' varchar(45) NOT NULL, 'email_client...
asked by 12.06.2015 / 22:42
1
answer

Save relationship 1: 1 in Laravel 5.3

In my scenario, I have the tables of users and teachers, where a teacher has a user, so I have a 1:1 relation. Migrations: create_users_table Schema::create('users', function (Blueprint $table) { $table->increments('id'...
asked by 07.01.2017 / 01:33
1
answer

distant relationship with laravel

I have this table structure and would like to know if the person who posted the thread or the reply member or moderator in> but I could not structure a relationship that works, can anyone help me? forum id - integer name - s...
asked by 16.08.2014 / 23:02
4
answers

Laravel 5.3 - Model that can be created by multiple Controllers

Good afternoon, I use Laravel 5.3 as a back-end for a project and I will try to explain the problem more succinctly. Problem : In my project I have the Duplicate model and the Contract. A contract creates multiple duplicates by Contract...
asked by 27.01.2017 / 19:24
1
answer

How to structure the hibernate Entity relationship annotations?

I would like to understand the difference between hibernate annotations with JPA: @OneToOne, @OneToMany, @ManyToMany and @ManyToOne of hibernate, how does it work?     
asked by 22.07.2015 / 18:59
2
answers

Best way to relate two tables

I have two tables ( groups and roles ): Table groups : +----+------+-------+------+ | id | name | color | role | +----+------+-------+------+ Table roles : +----+------+-------+-------------+ | id | name | alia...
asked by 30.04.2018 / 20:09
2
answers

Implementing relationship in C #

I have the following classes: Thecodelookslikethis:publicclassMae{publicstringNome{get;set;}publicList<Filho>Filhos{get;set;}}publicclassFilho{publicstringNome{get;set;}}Inthiscase,itispossibletogetallthesonsofthemother,butitisnotpossi...
asked by 09.11.2015 / 15:01
3
answers

DER Student Question Topic

I am developing a learning control system, where I will have a database of questions that will be listed in an activity and then answered by the students. As soon as the student answers the question, I would like to store it if he hit or miss th...
asked by 23.08.2015 / 18:53
1
answer

I can not perform a Select

I have a question about how I should mount SELECT for a given function. The scenario is as follows: I have 4 tables: Tab_Pessoa - Tab_Cliente - Tab_Autorizado - Tab_Cliente_Autorizado . So the Tab_Pessoa is related to...
asked by 12.01.2015 / 14:15
1
answer

StackOverflow in bidirectional relationship in JPA

I am facing this problem with a bidirectional relationship, when I put a question in question to create an answer it does the persistence, until then beauty, but if I try to get a get or even in the API response points me an http 500, I discover...
asked by 08.06.2016 / 13:38