Questions tagged as 'jpa'

0
answers

Does not order an object with lambda (Java 8)

I am making a query of a table as an object to insert it in another table. Sorting with lambda the student_code. I did a proof of concept with two integer values and if it worked, but when I do it with 2 values String does not order them. publ...
asked by 21.03.2018 / 01:52
1
answer

how to get the maximum and minimum date of a query in jpa with java?

I have the following query @NamedQuery(name = "findRegistroAccesoByNuserid", query = "select myRegistroAcceso from RegistroAcceso myRegistroAcceso where myRegistroAcceso.nuserid = ?1 and TO_CHAR(myRegistroAcceso.fecRegistroEntrada, 'dd/MM/yyyy...
asked by 21.03.2018 / 17:03
0
answers

Problem with the input type="date" when loading a date from a MySQL database

I am carrying out a project as a test using angularJS, SpringBoot, JPA technology in a MySQL database. Now I'm doing a CRUD of a movie entity. One of the attributes of the entity is a date (Date). I make the insertion in the MySQL DB without any...
asked by 27.02.2018 / 21:41
1
answer

Input text (String type) throws java.lang.NumberFormatException when sending aSpring boot

I have the following error in spring boot when sending a form with a text:    org.springframework.beans.TypeMismatchException: Failed to convert   value of type 'java.lang.String' to required type   'com.carrduci.gestionycontrol.model.Model';...
asked by 23.02.2018 / 23:37
1
answer

because the error failed because of: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token?

I have the following query in oracle select NDATETIME, Case NREADERIDN WHEN 52730 THEN 'INDEPENDENCIA' WHEN 52731 THEN 'INDEPENDENCIA' WHEN 52734 THEN 'TRIANGULAR' WHEN 52735 THEN 'TRIANGULAR' WHEN 52737 THEN 'INDEPENDENCIA...
asked by 12.03.2018 / 23:45
2
answers

How do I make an accountant come out as an object in my json?

This is my driver that I call it from a class called demand that I want to get the states counter for its id @SuppressWarnings({ "rawtypes", "unchecked" }) @CrossOrigin("http://localhost:8080") @RequestMapping(value = "counte...
asked by 02.02.2018 / 21:41
0
answers

Java.lang.NullPointerException when executing a program. (It seems a configuration problem)

I am new to the SO community and to programming and I wanted to know if someone with more experience can help me. The problem is this: I start the pc and execute eclipse in a normal way, double click, select the workspace and enter again....
asked by 22.01.2018 / 16:42
1
answer

404 Whitelabel Error Page

I'm practicing with Spring JPA. I have the following code @Controller @RequestMapping("/empleados") public class EmpleadoController { @Autowired @Qualifier("empleadoRepository") private EmpleadoRepository empleadoRepository;...
asked by 21.01.2018 / 20:13
0
answers

How to send emails using spring

I am new using the framework but I would like to know how I can create the classes to send an email using the framework spring, if someone could help me, I would appreciate it. the configuration to my database is in the .ytml file I have done...
asked by 15.12.2017 / 01:25
1
answer

How to save an image in SQLServer 2014 from Java using JPA?

I am trying to save an image that is selected from a user interface using the following code: private void botonSeleccionarActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your...
asked by 26.11.2017 / 18:12