Questions tagged as 'hibernate'

0
answers

Mapping HIbernate Embeddable

Good morning! I have a question regarding the mapping of composite keys. The situation is as follows: I have a class whose primary key is made up of two other classes, but I have a third class that the third key is a compound of the oth...
asked by 09.01.2018 / 12:07
1
answer

RollBack () JPA + Hibernate

I have a problem with persisting multiple information in the same transaction, in case something is wrong, some of the information is stored in the database and rollback() is not executed. Here's an example: try { em = Conn...
asked by 16.01.2018 / 20:18
0
answers

ManyToMany Hibernate error

Hello, I have a% bidirectional% co_related relationship between the class @ManyToMany and Pessoa , where for these, I have the tables in the database for person, address and the table for the relationship between them, Endereço...
asked by 11.01.2018 / 21:51
0
answers

Problem in left join JPA - JPQL

   Exception in thread "main" javax.persistence.EntityNotFoundException:   Unable to find CNPJ with id 00001388000307 Reading the documentation, I saw that this exception is thrown when it tries to access (by the getReference method o...
asked by 13.10.2017 / 19:37
1
answer

Object is not updated

In my stream it looks like this: I already have an object stored in the database. When loading my page, these objects are fetched in the database, treated to be displayed. Objects arrive in a List ( List ), that is iterated by f...
asked by 31.03.2017 / 23:58
2
answers

Delete data with the @ManyToOne relation

How do I delete data with the @ManyToOne relation? It does not give an error, but does not erase the data in the database. My class Pedido : public class Pedido extends GenericDomain{ @Column(nullable = false) private...
asked by 21.12.2016 / 12:51
1
answer

JPA + Hibernate launching update alone

Hello, I have an object that is managed by Hibernate. On screen, an attribute of this object updates the value and Hibernate immediately fires an update in the database, without even going through methods in the controller or data persistence...
asked by 19.10.2016 / 20:29
1
answer

Inheritance problem with HIBERNATE

Well, my problem is this: I have an abstract Employee class and two Attendant and Dentist subclasses that inherit from employee. I also have a User class, which has login attributes, ..., ...., ... and an employee linked to it. My...
asked by 27.11.2016 / 23:51
1
answer

Help with broken pipe

I have a problem with my system, it is dropping too much connection as a database, this system is up to 12h idle, I need help to configure C3P <!--Configuração do pool de c3p0 --> <property name="c3p0.acquire_increment"...
asked by 17.10.2016 / 20:10
0
answers

javax.el.MethodNotFoundException [closed]

Good afternoon guys, I'd like your help for an error that I still do not understand why it happens. The situation is: I have a method in my managedBean listTurmas that loads a list so that later I can use, I already tested this method in a te...
asked by 16.09.2016 / 17:31