Questions tagged as 'jpa'

1
answer

JPA in java web

I'm having a project in JAVA WEB and I'm having problems with hibernate. The error is as follows: Informações: HCANN000001: Hibernate Commons Annotations {4.0.2.Final} Informações: HHH000412: Hibernate Core {4.2.2.Final} Informações: HHH...
asked by 22.10.2016 / 23:21
1
answer

Constraint error trying to persist with cascade

Good morning, I have the following problem Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-01400: não é possível inserir NULL em ("XXGOVC"."ASSINATURA"."ID_DIRETRIZ") And here is the mapping of my entities ... @Entity @T...
asked by 01.12.2016 / 14:37
2
answers

How to do this consultation with JPA?

I would like two solutions to this question, one using a normal typedquery and another using the criteria because of its great versatility for the code. Here is my query: TypedQuery<Pessoa> query = em.createQuery("SELECT a FROM...
asked by 18.08.2016 / 15:26
2
answers

How to solve the JPA Hibernate error

Can you help me with this error? Exception in thread "main" javax.persistence.PersistenceException: No Persistence provider for EntityManager named bsewebservicePU at javax.persistence.Persistence.createEntityManagerFactory(Persistence.jav...
asked by 22.08.2016 / 18:01
1
answer

Delete created entity from a ManyToMany relation

I have a ManyToMany relation between users and profiles mapped with Hibernate : user: id name profile: id profile_name user_profile: user_id profile_id The mapping is done as follows: User:...
asked by 09.06.2016 / 18:22
1
answer

Improvements to EntityManegedFactory JPA

I am working as follows, I have 2 PersistenceUnit , one from the Manager database, which is where I find the data from the clients 'databases, another from the clients' database, which I get the from the Manager data, I want to know if I'm...
asked by 26.04.2016 / 15:30
1
answer

How to display Questions retrieved from a DAO on the same JSF page

Good afternoon. I have a page called simulate.xhtml where I get some parameters (Filter) to query the database according to the filter. It's all working, what I wanted was to get this query and display the questions on the same page, that i...
asked by 13.10.2015 / 19:42
2
answers

Incomplete entity class problem - JPA

I'm trying to make the relationship between two classes (CotDetatlhe and CotDetForn), but I'm facing the following problem:    The @JoinColumns on the annotated element [field cotDetatlhe] from the entity class [class bean.CotDetForn] is inco...
asked by 27.03.2015 / 20:35
1
answer

Problems with NullPointerException in a JSF project

I have an application that is displaying the following error message; jun 01, 2015 4:15:05 PM com.sun.faces.lifecycle.InvokeApplicationPhase execute ADVERTÊNCIA: #{pesquisaPedidosBean.pesquisar}: java.lang.NullPointerException javax.faces.Face...
asked by 01.06.2015 / 21:19
1
answer

Error in JPQL query

When I am starting my server, the following unexpected token error is occurring: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IServidorMensalRepositorio': Invocation of init method failed; nest...
asked by 05.05.2015 / 21:54