Questions tagged as 'jpa'

0
answers

doubts in Java / JPA code

I have a little project and I'm new to Java. I need to do a report search and this will consist of three tables in the database, until then the relationship is ok, but the question, how do I call this report? I tried to use HashMap with JPA,...
asked by 26.01.2018 / 14:44
1
answer

Variable type for persistence in MYSQL Longtext

Good morning, In my database MySQL , I have a column of type longText. My question is how to declare the type and annotation of this variable in the java class. In brief research I found the following information: @Blob private String...
asked by 18.01.2018 / 14:14
1
answer

Firebird JPA returning null values

When I try to get some records from the database, some fields are null, even though the table is not null! Any idea what might be causing this behavior? I'm using Java 8 , Hibernate 5.2.4 , Jaybird 3.0.3 . As soon as I'm picking up P...
asked by 21.01.2018 / 20:03
0
answers

Problems with Left Join with EclipseLink - Java

I have a problem with the following query: SELECT * FROM tipo_calibracao t LEFT OUTER JOIN fator_medio f ON (t.id = f.tipo_calibracao AND f.lote = 42) ORDER BY t.id ASC; Java: public List<TipoCalibracao> searchTypes(Long batchId) {...
asked by 08.01.2018 / 20:04
1
answer

Jaxb and JPA: class Embeddable Could not determine type for java.util.List

I'm trying to embed a class inside another class. I've already been able to do this in other scenarios, but for the error shown below, I'm not getting it right now. javax.persistence.PersistenceException: [PersistenceUnit: nfse] Unable to buil...
asked by 18.12.2017 / 20:58
1
answer

Error creating an entityManagerFactory in spring MVC

This error is occurring when creating the entiyManagerFactory ERROR [org.springframework.web.servlet.DispatcherServlet] (ServerService Thread Pool -- 59) Context initialization failed: org.springframework.beans.factory.BeanCreationException: E...
asked by 16.12.2017 / 21:16
1
answer

Using Jparepository and pageable can I do a partial query?

I have an object that is persisted with jparepository , I use pagination but it returns all fields which is not necessary for the application. So is there any way to set a @Query to just get some data? @Query(value = "SELECT p.id...
asked by 07.12.2017 / 21:33
1
answer

JSP - java.lang.IllegalArgumentException: Parameter value [11] did not match expected type [java.lang.Integer (n / a)]

SOMEONE CAN SAY WHAT I AM DOING WRONG? public List<Usuario> obterusuario(String user){ Consultar consulta = new Consultar (); EntityManager obconsulta = consulta.getEntityManager(); System.out.println("passou"+user); S...
asked by 27.11.2017 / 05:36
0
answers

JPA references an unknown entity

I have the following scenario: RpsV3Vo class: package nfse.vo; import java.io.Serializable; import java.util.Objects; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.pers...
asked by 13.12.2017 / 12:00
1
answer

JPA + JSP - Error trying to insert information into the database

I have a problem that I can not solve. I'm trying to enter the information in the bank and I'm not getting it. the browser is returning the following error when registering. Served at: / SISTEMA_ESCOLAR Follow my code.    Class ServletCad...
asked by 29.10.2017 / 04:34