Questions tagged as 'relacionamento'

1
answer

Example and illustration about redundant relationships (MER)

Context Consider the sentence below:    It is stated:            Relationships that are a result of combining other relationships between the same entities are called: redundant relationships    Doubt Would it be possible to imag...
asked by 30.10.2017 / 22:36
0
answers

Inserting data on side 1 of the ratio 1: N - Laravel 5

I have the following tables, Condominios and CondominiosTaxas , which are a 1:N relationship, respectively, my relationship in the Condominium model: public function Taxas() { return $this->hasMany('WebCondom\Models\...
asked by 06.11.2017 / 11:57
2
answers

Values Table Search in excel

Hello! I'm doing a cost table for my company and I'm having to do a search on a table of values, but the only way I currently know how to do it is through multiple threaded SEs, which will give a lot of work, time and it will generate an incr...
asked by 23.06.2017 / 22:58
1
answer

N x N relationship in Java objects

I have a table item (item_id (pk), descrição, ...), A vendor table (fornecedor_id (pk), nome, ...) and because it is a NxN relation I have an intermediate table vendor_list (item_id (fk), fornecedor_id (fk), codigo, ...). How do...
asked by 07.11.2016 / 19:07
1
answer

Relationship Through Many-To-Many ActiveRecord

I have the following configuration in rails: Company has_many :company_products has_many :products, :through => :company_products Product has_many :company_products has_many :companies, :through => :company_products P...
asked by 13.09.2016 / 22:00
3
answers

Conditional Relationships

I need your help I have the following template: class User < Ac... enum user_type: [:normal, :admin] end I also have the "Department" template: class Department < A.... end What I need is to do the type relationship: U...
asked by 08.04.2015 / 12:11
1
answer

Is it possible to state that the scheme is normalized in 3FN?

Explaining the Context In the internet I found an example of a scheme described in this way:    account (num-account, descr-account, post (num-lanc, tipolanc, data-lanc, Notice that the way this scheme is, it is not normalized....
asked by 11.11.2017 / 17:37
2
answers

How to make an @foreach with Table Relationship in Laravel

I'm using the Laravel freamwork where in my database I have 2 tables:  - > claimants (with the field 'id', 'claimant', 'type_id')  - > types (with the fields 'id', 'name') Both are already with the Complainant Model Relationship publi...
asked by 27.09.2018 / 02:58
2
answers

JSON Infinite when using @ManyToMany GET

I have two classes, which has a @ManyToMany relationship generating the third table described in the code below: Card package br.com.rpgnext.deck.critical.model; import com.fasterxml.jackson.annotation.*; import javax.persistence.*; imp...
asked by 10.04.2018 / 16:16
2
answers

How to initialize has_many attributes in Rails automatically

Currently I have 3 models class Regiao < ActiveRecord::Base has_many :tipofretes has_many :valorfretes, through: :tipofretes end class Tipofrete < ActiveRecord::Base has_many :regiao has_many :valorfretes, through: :regiaofretes...
asked by 18.06.2014 / 16:35