Questions tagged as 'jpa'

1
answer

Receiving object by parameter

I'm using Spring MVC and I use some mappings to receive an object for example and access that specific object in controller . For example: @GetMapping("/pessoa/{idPessoa}") public ModelAndView editaPessoa(@PathVariable("idPesso...
asked by 13.12.2018 / 20:06
1
answer

Precedence in JPA Query

I'm using the @Where(clause = "ts_removed is null") notation in my entity. If I insert a method with @Query(value = "XXX") into my repository, will the query override or will it use my where clause in the entity also in the repository?...
asked by 27.11.2018 / 14:27
1
answer

Configuration error on JPA and PostgreSQL connection

I'm having trouble connecting JPA to PostgreSQL. I think the problem is in the application configuration. I'm using the Java 8 version, and my pom.xml file is: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www....
asked by 25.11.2018 / 22:07
0
answers

Problem to update data

Good morning friends, I'm about 3 days with difficulties in an error that has been occurring in my application. I have two entities, CLIENT and VEI. I did the mapping bidirectionally saying that my client may have one or more vehicles. priv...
asked by 31.10.2018 / 16:50
1
answer

Operations at JPA

Good morning I'm developing an application in which the user has to inform the system of a list of exams and the system to display the laboratory units that perform such exams, but I have a question about the way in which to record in the bank t...
asked by 10.10.2018 / 16:27
0
answers

Spring data Jpa implement generic methods

I have 3 services with these methods in common create() , deleteById() , findAll() , getById() and update() . @Service public class AutorService {create(),deleteById(),findAll(),getById(),update(), etc...} @Servi...
asked by 23.11.2018 / 00:23
1
answer

No Persistence provider for EntityManager named

I've been studying hibernate framework with JPA in a simple example of face I'm already having problems and my searches have not got me anywhere to solve my problem. This is the error you are giving: Exception in thread "main" javax.persist...
asked by 03.09.2018 / 04:45
0
answers

JPA - EntityManagerFactory - Slow execution

Expensive, I'm playing around with persistence and something strange happens when I run from eclipse. The same does not occur when I run the jar. Has anyone ever gone through this? Eclipse Photon (4.8.0) + Maven + EntityManagerFactory + JP...
asked by 17.09.2018 / 13:45
1
answer

OneToMany mapping with associative table with HIBERNATE - JPA

I need to map Hibernate from a 1:N relation to two tables, but there is an associative table that has the ids of the other two tables as columns. Example: The Servicos table can have many Itens and each item can only b...
asked by 21.08.2018 / 18:59
0
answers

OneToMany Relationship to Class with Composite PrimaryKey in Hibernate

I have the following relationship IntheScaleDefinitionentity,IhaveacompositeprimarykeyfaultconsistingofidEscaleDetailsandidTurmaIamhavingdoubtstodothereversemappingbetweenScaleDetailsandScaleDefinitionusinghibernatesinceIhavean@Embeddableclassa...
asked by 17.08.2018 / 15:10