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...
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?...
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....
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...
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...
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...
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...
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...
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...
I have the following relationship IntheScaleDefinitionentity,IhaveacompositeprimarykeyfaultconsistingofidEscaleDetailsandidTurmaIamhavingdoubtstodothereversemappingbetweenScaleDetailsandScaleDefinitionusinghibernatesinceIhavean@Embeddableclassa...