Questions tagged as 'jpa-2.0'

1
answer

JPA read-only database

Good morning, I have an affair, atypical for me. A database where I need to do select and update in 1 or 2 columns of a table. I would like to know how to configure my persistence.xml Persistence.xml <?xml version="1.0" encoding="UTF-8"?...
asked by 10.01.2018 / 15:10
1
answer

Jaxb and JPA: class Embeddable Could not determine type for java.util.List

I'm trying to embed a class inside another class. I've already been able to do this in other scenarios, but for the error shown below, I'm not getting it right now. javax.persistence.PersistenceException: [PersistenceUnit: nfse] Unable to buil...
asked by 18.12.2017 / 20:58
1
answer

UpperCase in CriteriaBuilder

I have the following query with CriteriaBuilder CriteriaBuilder cb = manager.getCriteriaBuilder(); CriteriaQuery<Escola> cq = cb.createQuery(Escola.class); Root<Escola> root = cq.from(Escola.class); cq.select(root)...
asked by 11.10.2017 / 13:37
1
answer

Class is managed, but is not listed in the persistence.xml file

I'm having a problem that was not before I migrated to JPA 2.0. Receiving message that all my classes / entities are not listed in persistence.xml and even after adding them I keep getting the message. link Follow my persistence.xml &l...
asked by 28.08.2017 / 16:36
1
answer

Error using Hibernate to generate tables and doubts about

I'm creating a webservice using Maven to manage the dependencies of my project. I'm currently trying to create a database based on my templates. I have four questions and one problem in my attempt: 1) How do I get Java to create Foreign Key?...
asked by 04.09.2017 / 14:34
1
answer

Doubt JPA 2.1 and Hibernate 5.2

I have some doubts with JPA 2.1 and Hibernate 5.2. The latest version of the JPA standard is 2.1. Right? Is it correct to say that I can implement an AP only with JPA without hibernate? What are the features of hibernate 5.2 that are outside the...
asked by 03.07.2017 / 22:23
0
answers

Criteria Hibernate - Error

I'm getting the following Exception , I looked at my code and I can not find the error. The query is performed and returns the objects, but when it returns, it throws the exception . @SuppressWarnings("unchecked") @Override @Transactional...
asked by 23.05.2017 / 21:57
1
answer

Help about a JPA query

I'm trying to make a query using JPA criteria, it would look like this: I'll go through 2 initial dates and a DateFinal and a vehicle's board how can I make this query? The table that I'm going to consult would be Service and it has a car...
asked by 08.04.2017 / 03:33
2
answers

@Autowired annotation error

Good morning. I am studying JPA + Hibernate + Spring MVC and I am a few days with this problem and I can not solve it. I searched the internet and the solutions I saw did not resolve. Thank you. Stack GRAVE: StandardWrapper.Throwable org...
asked by 15.02.2017 / 17:24
0
answers

Problem with Lists in JSF & JPA

I do not know if the way I'm doing is correct, but I have a problem:    java.lang.IllegalArgumentException: id to load is required for   loading. When I try to remove a template from the list, and in addition, the list of selected templat...
asked by 29.11.2016 / 00:59