Questions tagged as 'jpa'

0
answers

Bulk inserts in jpa without hibernate

Good afternoon everyone, I'm with a project for the faculty that deals with money loans. I'm working with the JPA API. (WITHOUT HIBERNATE) I have a problem with the response times of the application as the number of entities to persist grows,...
asked by 04.06.2017 / 23:59
1
answer

Why use FROM with Hibernate?

I have been working with Hibernate for some time and I do not understand why they are complicated when making bbdd queries: Root<Foo> fooRoot = criteriaQuery.from(Foo.class); Join<Foo, Foo1> foo1 = fooRoot.join("foo1", JoinType.LEF...
asked by 26.05.2017 / 11:59
1
answer

Entities in JPA

I am learning to use the Spring Boot framework and I need help to perform entity mapping. This is the Query CREATE TABLE testdb.user_roles ( user_role_id int(11) NOT NULL AUTO_INCREMENT, username varchar(20) NOT NULL, role varchar(2...
asked by 13.04.2017 / 10:05
0
answers

(JAXB) Retrieve the XML file in the input fields of the JSwing form with unmarshalling

I am new and started those days to learn XML for an implementation that must have in my application, I already made some tests with marshall() and unmarshall() already in Main() to understand more, I'm doing a form that you...
asked by 11.04.2017 / 19:54
0
answers

JPA in Heroku without Spring - No persistence provider

I have a web app for which I use JPA with Hibernate 5.2.10.Final for the backend. The problem is that when it tries to generate the connection it gives me ExceptionInInitializerError: No persistence provider for EntitiyManager named de...
asked by 07.07.2017 / 13:27
0
answers

Error Query SQL: SQLGrammarException

I have problems with the following @Query, to which I can not find error reason: SQLGrammarException @Query("select distinct e.issue.company from CreditLinesAmendmentEntity e where " + "(e.issue.ownerBank!=null and (e.issue.ownerB...
asked by 28.12.2016 / 21:26
0
answers

SQL syntax error using JPA Criteria Query

Good morning, I am trying to launch a SQL query that retrieves all the Sites associated with a user, using the following JPA code: CriteriaBuilder cb = em.getCriteriaBuilder(); CriteriaQuery<Site> query = cb.createQuery(Site.class); R...
asked by 14.12.2016 / 20:16
0
answers

JAAS JDBCRealm with JPA entities does not work

I want to use JAAS in my project, configuring a JDBCRealm through JPA entities. The authentication seems to work correctly, for example, I try to access facelet /admin/analysis.xhtml and redirect me to facet login.xhtml . When...
asked by 20.10.2016 / 22:50
1
answer

how can I validate a junction of hours in jsf hibernate mysql

This is my managed bean public class PeliculaMB{ public EntityManager em; private Pelicula pelicula= new Pelicula(); private Categoria categoria = new Categoria(); private List<Pelicula> peliculas = new ArrayList<Pelicula>(); priv...
asked by 11.10.2016 / 22:21
1
answer

HTTP status 500 - Invalid persistence.xml. JPA + Hibernate + DAO + Servlet + JSP

This error appears when loading.    HTTP status 500 - Invalid persistence.xml.       type Exception Report       message Invalid persistence.xml.       description The server encountered an internal error that caused it not to   I could fi...
asked by 11.10.2016 / 00:15