Questions tagged as 'hibernate'

1
answer

Convert html page to jsf

I've downloaded a template that will be the index of my project, so it's all set up with web.xhtml , I'm already running other jsf projects, however I'm starting another project and I want to put a template that I've taken in html5 to run...
asked by 04.12.2014 / 04:49
1
answer

java.lang.OutOfMemoryError: Java heap space

I need help trying to clear these 2 errors: Exception in thread "Thread-4" java.lang.OutOfMemoryError: Java heap space at java.util.zip.InflaterInputStream.<init>(InflaterInputStream.java:88) at java.util.zip.ZipFile$ZipFileInfla...
asked by 10.09.2014 / 13:54
3
answers

What is the best strategy for loading and persisting large volumes of data with Spring?

I need to perform a function in a Spring and Hibernate project, to which I must update some information from all records in my table. The idea is to load the records into the application, process the data based on some values from those records,...
asked by 03.07.2018 / 14:56
1
answer

Error generating Id automatically in hibernate

I am making an application with hibernate, but it is generating and error: "ids for this class must be manually assigned before calling save ()" The class that is saying it is wrong is like this. @Entity @Table(name = "USER") public clas...
asked by 01.09.2018 / 19:09
1
answer

Manage connections to the database correctly using hibernate

What would be the best default for connections, I thought of two modes: Mode 1: Each function creates and closes its own connection Function 'insert' EntityManagerFactory factory = Persistence.createEntityManagerFactory("Taref...
asked by 06.04.2018 / 23:42
1
answer

JPA Cascade Persistence

I'm trying to perform a cascading persistence using JPA. I have the entity: Course and Module 1 Course can have multiple Module @Entity(name = "course") public class Course extends BaseEntity { private static final long serialVersion...
asked by 09.05.2018 / 18:51
2
answers

javax.servlet.ServletException: java.lang.ExceptionInInitializerErro

I'm trying to create my first project using JPA, I use Jboss 5, Oracle, Hibernate and primefaces. After doing the project deploy I try to create and inseir a new client in the bank through the web interface, but I am getting the following error:...
asked by 14.07.2017 / 05:11
3
answers

Doubt about instructions that can be implemented in Hibernate

Java programming language technical course test question:    What instructions can be used in Hibernate?       a- JDBC       b- JPA       c-SQL       d-JNDI     
asked by 18.09.2017 / 15:09
1
answer

Doubts about JPQL

I honestly have some difficulty with BD, and I need a JPQL that returns only one record. I have an Entity Price and an Entity Product. I need to bring the last price registered by the user. I put a date and ID, I imagine it could be the last ID...
asked by 19.08.2017 / 01:03
2
answers

DataTable data is not displayed, even with loading of ArrayList being executed correctly

I'm loading a JSF dataTable with an ArrayList, but the result is not displayed at all, here's my code: index.xhtml                <h:body> <h1>Novo Jogo</h1> <j:form> <fieldset> <leg...
asked by 30.04.2017 / 18:44