Questions tagged as 'hibernate'

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
2
answers

Error trying to connect to a PostgreSQL database with Hibernate and Spring Boot

I am a beginner in Spring Boot and Hibernate, I did a project in the Spring Initializr with only the dependencies Web, DevTools e PostgreSQL , but then I added the dependency spring-boot-starter-data-jpa , I was following some tuto...
asked by 19.09.2018 / 03:12
1
answer

Error while deploying with Tomcat 7

I made an app with springboot and when I squeeze it inside springboot it works normally but when I generate the war and boto to run in tomcat it gives some errors. I've tried some things I've seen on the internet but so far nothing has helped me...
asked by 19.07.2018 / 15:03
1
answer

Error performing load command: org.hibernate.ObjectNotFoundException: No row with given identifier exists

Good afternoon! When loading a list of the Warehouse entity, jsf has the following error: org.hibernate.event.internal.DefaultLoadEventListener doOnLoad INFO: HHH000327: Error performing load command : org.hibernate.ObjectNotFoundException:...
asked by 19.07.2018 / 18:54
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
1
answer

JPA Query Filtering by Entity List

I'm running a Java system using SpringBoot and JPA , being event management and I have two entities: Inscricao and HorarioAtividade . They have a Many To Many relationship, with my class Inscricao having a list of...
asked by 04.07.2018 / 17:07
0
answers

Error: Failed to execute goal org.codehaus.mojo: exec-maven-plugin: 1.2.1: exec

I'm developing a web application with Spring + Maven + Hibernate, I've already created my HibernateUtil class and created a ConectaHibernateMySQL test class to check my connection to the database. However, when I run my connection...
asked by 31.07.2018 / 20:41
0
answers

NHibernate keep two Mapping for a single object

I would like to keep two different mappings for a single object is it possible to do this with NHibernate?     
asked by 03.07.2018 / 20:58
1
answer

Passing JSP Objects with Hibernate

Expensive, I have the classes below. I'm having trouble creating a TreeResource, because in JSP I'm passing the parameters "Id Area" and "Description Tree", in the controller I'm getting an AreaArvoreClassification object (aac), which has...
asked by 08.06.2018 / 18:59
1
answer

JAVA NullPointException

When I click on my button in the view the parameter is not arriving in my java attribute responsible for the button public Map<String, Object> getFiltroGlobalMap(){ Map<String, Object> mapFiltrosGlobais = new HashMap<String...
asked by 29.05.2018 / 20:44