Questions tagged as 'jpa'

0
answers

View logged in user profile data

Well folks to creating a panel where you have the section of my profile for the Administrator that is online can see the information of your profile. However, however, however I am having problems creating the profile page, I have read some tuto...
asked by 10.04.2018 / 22:46
0
answers

java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected AST node: query

I'm having to do a SELECT in JPA that contains an ORDER BY by selecting from another table. Small representation of tables: WhenIdiditforSQLitwasnormal,butwhenIturneditonJPA,itdidnotwork,andifItakeouttheJPAitworksnormally.  2018-03-2816:36:2...
asked by 28.03.2018 / 21:41
1
answer

ManyToMany JPA - Product Category

Hello, I'm having trouble deleting a record that has @ManyToMany relationship. When I delete the record for the Product entity with the CascadeType.ALL annotation, it deletes all the records in the middle table (Categorization), not just...
asked by 22.03.2018 / 19:05
0
answers

Error uploading Maven application using Hibernate: org.apache.openejb.OpenEJBException

I'm having problems uploading my application to tomcat7 with maven managing dependencies. I know the error is due to not finding the class specified, but since I do not have much experience with hibernate, I would like to know: Is it necessary t...
asked by 09.03.2018 / 14:31
0
answers

Error running application with command "local heroku"

I'm trying to deploy a JSF, CDI, and JPA application in Heroku, but at the time of running local with the "local heroku" command it gives this error: link GRAVE: A child container failed during start java.util.concurrent.ExecutionExc...
asked by 10.03.2018 / 01:14
1
answer

Error to play data from the search screen for registration screen for editing

Gentlemen, I'm having trouble getting the objs from my client search screen, and playing on the registration screen for editing the same. My search screen has a button with a <p:button outcome="/cliente/CadastroCliente.xhtml" icon="ui-in...
asked by 01.03.2018 / 14:54
0
answers

Map table fields beginning with number

Hello, I'm having trouble mapping the tables in a database where column names start with number. Here is an example of how I tried, but to no avail. @Entity @Table(name = "A_MOT025") public class Motorista { @Id @Column(name = "[0251C...
asked by 22.02.2018 / 20:36
0
answers

JPA - You can use MatchMode.ANYWHERE with Predicate

Normally when I need to search using a single word using Criteria and Restrictions I do this as follows: Due to a need of the project, I'm having to do the research in a different way, so I decided to do a test using Predicate Follow th...
asked by 21.02.2018 / 23:41
0
answers

Problem persisting in SPRING-DATA / JPA using Compound key / Does not return Id generated

Hello everyone, Has anyone had this problem when saving a class with a compound key, the Spring Data API does not return with the generated id? I made a test with primitive classes with unique id then it works normally and returns the generate...
asked by 21.02.2018 / 19:03
0
answers

How to retrieve list of records of a given table by the amount of record that appears in another in the criteria / JPA

I'm sorry for the title if it's confusing, but my situation is this: In the system I'm creating a user can log several tips on anything he knows. while persisting the hint in the database will be stored in the hint a reference of the user who re...
asked by 03.02.2018 / 01:10