Questions tagged as 'hibernate'

0
answers

File Upload PrimeFaces - Save image in project context

Good evening I'm with a javaEE project jsf2.2 and primefaces, in which I use the component of primefaces so that the user sends an image and it is saved in a folder inside the project, type: "resources / images", so that through a html page anot...
asked by 22.01.2018 / 00:17
0
answers

Difficulty working with JPA Criteria!

I'm trying to create some sort of queries with JPA's Criteria instead of hibernate, but I'm having some difficulties; I would do so if I were to use hibernate; if (filtro.getEstado() != null) { criteria.add(Restrictions.eq("...
asked by 28.01.2018 / 16:18
1
answer

Variable type for persistence in MYSQL Longtext

Good morning, In my database MySQL , I have a column of type longText. My question is how to declare the type and annotation of this variable in the java class. In brief research I found the following information: @Blob private String...
asked by 18.01.2018 / 14:14
1
answer

Firebird JPA returning null values

When I try to get some records from the database, some fields are null, even though the table is not null! Any idea what might be causing this behavior? I'm using Java 8 , Hibernate 5.2.4 , Jaybird 3.0.3 . As soon as I'm picking up P...
asked by 21.01.2018 / 20:03
1
answer

Hibernate Session Errors - getCurrentSession ()

Please, if possible, please comment on this code. If this is consistent or needs to be improved because I constantly have errors of org.hibernate.TransactionException: rollback failed or org.hibernate.TransactionException: Transaction n...
asked by 18.01.2018 / 12:35
1
answer

Problem in table name during hibernate creation

I am "annotating" an entity Menu using hibernate / jpa, and Menu contains a ShareActivity
asked by 10.01.2018 / 12:48
1
answer

Error when saving in bank (Unable to build entity manager factory)

I'm trying to implement a registration but when I click the button to save the following error appears in the console: dez 18, 2017 3:49:14 PM org.hibernate.ejb.HibernatePersistence logDeprecation WARN: HHH015016: Encountered a deprecated java...
asked by 18.12.2017 / 19:10
2
answers

Why can not I delete an object with Hibernate?

I have on a screen a process table and I want to delete one of them. This is a piece of my datatable : <p:column headerText="Excluir" style="width:68px"> <p:commandButton actionListener="#{processoMB.excluir(obj)}" icon="...
asked by 02.01.2018 / 21:34
1
answer

Error creating an entityManagerFactory in spring MVC

This error is occurring when creating the entiyManagerFactory ERROR [org.springframework.web.servlet.DispatcherServlet] (ServerService Thread Pool -- 59) Context initialization failed: org.springframework.beans.factory.BeanCreationException: E...
asked by 16.12.2017 / 21:16
0
answers

How to improve performance of ajax update? JSF

I'm developing a restaurant system and I have a dataGrid that updates the other. For example: I click on the class and update the product dataGrid. It works, but the result is a bit slow. I'm using a <h:commandLink> with updat...
asked by 14.12.2017 / 18:44