Questions tagged as 'design-pattern'

1
answer

Problems with PDO parameter passing

I'm studying a book in which I have to do some queries through a TableDataGateway pattern design but I'm getting the following error message:    Fatal error: Uncaught Error: Class 'classes \ tgd \ PDO' not found in C: \ xampp   \ htdocs \ lib...
asked by 25.10.2017 / 22:31
1
answer

Design patterns in Spring Boot projects

In the last 12 months I've worked and studied to learn how to create REST APIs with Spring boot, before that I worked with php MVC programming to create web systems and now in my "migration" to Java using Spring I'm having doubts / Difficulty to...
asked by 20.11.2018 / 20:55
1
answer

Relate disciplines and students to a pre-registration system

I'm doing a pre-registration system, and I came across a problem that bothers me a bit: As you can see in the picture, Curso has Disciplinas and Estudantes , only that each student needs to know in which Disciplinas...
asked by 26.07.2018 / 14:27
1
answer

DAO files in PHP needed?

I would like to know if DAO-type classes are required in PHP? Ex: ProductoDAO I see a lot of people programming without even putting DAO files on an MVC platform. I'm learning Object Oriented programming in my college, and the teacher f...
asked by 25.10.2017 / 16:52
1
answer

Best way to access activity components - MVP

I'm using the MVP standard in my Android project. In my MainActivity I have the following components: private Paciente paciente; private EditText nome, cpf, cpfTutor, telefone; private CheckBox checkbox; Soon after, I have this method th...
asked by 02.02.2017 / 00:49
1
answer

What is the best way to hide visible JS functions when parsing HTML? [duplicate]

I have some JavaScript functions in my pages that were previously inserted directly into jsp, within the <script> tags. Later I changed them to a .js file where I only import the functions. I would like to know if there is a bette...
asked by 18.03.2016 / 20:40
1
answer

Session Issues in MVC application using ActionFilters

I have a problem with my application ASP.Net MVC , about authentication. Let's go by steps: 1) I have my login screen /Login/Index simply the user logs, if found in the MySQL database, and logs in and redirects to /Dash...
asked by 11.01.2016 / 14:36
1
answer

DAO layer with two tables

My question when working with the DAO layer follows the following: As far as I know, each table would refer to a DAO object. But suppose it is necessary to query with select / JOIN , that is, it returns data from more than...
asked by 03.06.2015 / 16:33
1
answer

What is the key for the variables in node.js

Hello, I have a little amateur doubt I'm starting with node.js and through my learning I came across a situation and would like to understand, in one of the codes that I researched I found a variable declared the name in braces as the example be...
asked by 02.11.2018 / 21:59
1
answer

Enum returns null of the bank

Hello, I'm implementing a DAO and doing some testing, I'm having some problems with enums. When running the test class the enum Size returns null, but in the database I have filled records correctly. Test class: package br.com.caelum.jd...
asked by 26.02.2018 / 15:58