Questions tagged as 'jpa'

0
answers

Configuration Persisisntece.xml with datasource Glassfish

Next staff I made 2 datasources of glassfish !!!! Where the first is a fixed database !!! Here is the image: Thisdatasourceisworkingcorrectly!!!MysecondIdonotpasstheDatabasepropertybecausethispropertycomesfrommyfirstdatasource,ie,Igetthepath...
asked by 28.04.2016 / 22:50
0
answers

Error org.apache.jasper.compiler.TldLocationsCache

I am developing an application in JSF 2 (Mojarra 2.1.1), JPA 2.0 (Hibernate 4.2.3), Apache Tomcat 7.0.47 and JDK 7u79 and this error message is appearing: / p>    ContextListener:   attributeAdded ('org.apache.jasper.compiler.TldLocationsCac...
asked by 22.04.2016 / 16:48
0
answers

Miscellaneous Database accessed at the same time JPA

Today I have the following scenario: my clients enter my site and the login screen appears, where I ask for the User Group, Login and Password. For the Group I have a database, where it has the data of the user database ie on which server it...
asked by 15.04.2016 / 03:00
0
answers

How to do query involving more than one table (JPA) using JPQL

Hello, I have a query using SQL, I am now changing the project using JPA and would like to change queries consistently with JPA. public void gerarConsulta() { jTResultado.getColumnModel().getColumn(0).setMaxWidth(50); jTResultado.g...
asked by 31.03.2016 / 08:30
1
answer

Maven Spring Project MVC + JPA

I'm new to Spring MVC, I created an Maven sample project for Spring MVC using Hibernate and JPA. I found some problems when setting up persistence.xml but I was not able to use dartasource managed by jboss, I left that aside, now when I try to g...
asked by 13.03.2016 / 22:34
0
answers

Use SELECT NEW JPQL to populate DTO in an @OneToMany relationship

Talk to people !! I'm trying to popular my DTO object, whose main object has a OneToMany relationship. Here is the code for your observations: ## Mapped Object: public class Usuario implements Serializable, EntidadeBase { private static...
asked by 24.04.2016 / 14:31
1
answer

Persist object in CRUD JSF + CDI + JPA

I'm doing a simple CRUD using JSF, JPA and CDI. I have two screens: A screen with a datatable listing the data, on each line has the edit and delete button, at the beginning of the screen has an insert button, the edit and insert buttons...
asked by 19.01.2016 / 21:54
0
answers

Problem with table generation (tutorial algaworks) [closed]

I'm reading the Java EE 7 book, with JSF, primefaces and CDI. I got the configuration part of hibernate, but I'm having problems. I configured my application in a J2EE environment, with JSF and etc and using WildFly as Server. After configuring...
asked by 11.02.2016 / 13:52
1
answer

Error when querying postgres table using Jpa, Hibernate and Postgres

I made a small project to test a small register in a postgres table, using jpa, with hibernate, I managed to make the registration class work, it inserts into the table without problems but I can not make the query work because I get the followi...
asked by 16.10.2015 / 20:40
0
answers

Boolean component and rendered components do not appear on my page

Galera! Good Morning! I'm having a hard time here with JSF (it has to be this technology as it's the one I'm currently studying at home) I am having problem to set boolean component values and render form view according to type. The two situatio...
asked by 17.11.2015 / 15:25