Questions tagged as 'hibernate'

1
answer

Error while displaying the result of a List using MVC and JSF

I need to return data from the database to JSF but even before I get to JSF I can not show the searched data. I have the following error: Advertência: #{usuarioBean.pesquisa}: java.lang.ClassCastException: java.lang.Class cannot be cast t...
asked by 03.10.2014 / 17:22
1
answer

Change of entity to reflect on related entities

I have two entities, for example: Obs: Code fiction to facilitate understanding of the problem. @Entity public class Celular{ @Id @GeneratedValue(strategy= GenerationType.IDENTITY) private int id; private String modelo;...
asked by 03.09.2014 / 23:15
1
answer

Problem with class org.hibernate.validator.InvalidValue when upgrading from Hibernate 3.X to 4.X

I have a project developed using JBoss Seam 2.2.2.Final together with Hibernate 3.6 . I'm trying to upgrade this project by uploading and migrating the component versions that it uses. One of these migrations is to upgrade the version of H...
asked by 24.03.2014 / 14:20
1
answer

Override Hibernate Primary Key Generator

I would like to know if you can override the generator of a primary key in Hibernate, in my case I make a top class where id is, and the rest extend it. In my case this subclass, which extends from this one containing the primar...
asked by 03.04.2014 / 03:17
1
answer

An unhandled exception has been detected. Generated code: [68MJGTMV] and [XJEL5QC6] - Expected Exception

Caught an unhandled exception. Generated code: [68MJGTMV]:: javax.faces.FacesException: # {classBean.save ()}: I checked the specified class to expect an exception value, but it does not. The problem occurred when I migrated from pc. The code...
asked by 30.01.2014 / 18:08
3
answers

How to resolve ERROR: HHH000346: Error during managed flush [org.hibernate.exception.SQLGrammarException: could not execute statement]

When I try to run my test class, I get this error below. I do not know what to do anymore, when I comment on the FOLDERAUTOUPDATE attribute of the class ApplicationItv the insertion works in the bank, however I need it. Can anyo...
asked by 10.12.2018 / 11:39
0
answers

Weblogic using Eclipse-Link instead of Hibernate

I'm developing a migration project from Jboss to Weblogic and my application in Jboss runs perfectly, however in Weblogic I get the following error:    Exception [EclipseLink-7298] (Eclipse Persistence Services - 2...
asked by 07.12.2018 / 21:04
1
answer

Limit @OneToMany List

Good morning everyone! I have some problems in a list that in some cases I do not need to return it completely @OneToMany(mappedBy="local", cascade=CascadeType.ALL, fetch = FetchType.EAGER) @OrderBy("dataContagem DESC") private List<Contage...
asked by 04.12.2018 / 12:46
1
answer

Do not re-enter a user with an existing login

I have a problem with JPA with Java. I made a login system, using a self-generated ID, but every time I run the program it creates another user in the database, with a different id but same credentials. How do I, if this user login already...
asked by 23.11.2018 / 03:00
1
answer

JPA, Hibernate, Spring MVC, Maven - Definition

I have many doubts in definitions! My goal is to build an architecture of a system, but the definitions of JPA, HIBERNATE, SPRING MVC, MAVEN, are obscure. JPA: Nothing is more than a specification (ok) Hibernate: Persistence Provider,...
asked by 24.06.2016 / 01:57