Most voted "hibernate" questions
Hibernate is a framework for object-relational mapping written in the Java language, but is also available in . Net as the name Nhibernate.
Learn more…934 questions
Sort by count of
-
1
votes0
answers31
viewsThere is way for an entity to belong to a user in Hibernate
I am looking for a simplified way to link a bank entity to a specific user, who registered, in such a way that it does not need to set the field at the time of registration. Is there any simplified…
-
1
votes0
answers62
viewsJPA + Ormlite android: not all of the entity are returned
good evening, I’m having the following problem. I’m using JPA with Ormlite to make persistence on Android. I created a class Produto and a Categoria, both inherit from an abstract class…
-
1
votes0
answers320
viewsCPF Hibernate Constraint does not accept valid CPF?
I’m trying to run the Hibernate CPF validation Constraint, but it just seems to reject valid CPF. The same test using Email Straint works normally: EmailValidator validator = new EmailValidator();…
-
1
votes2
answers81
views'javax.persistence.Rollbackexception' received when invoking action listening '#{}
I inform the values on the page, but the values are not persisted in the bank. It’s like my page doesn’t send the values to the controller classes. If the values are reported however, the error is…
-
1
votes1
answer171
viewsError integrating Spring 4 + Hibernate 5 + JPA 2 and Glassfish
I’m unable to start the Spring transaction, it’s some configuration I made wrong who can help me. follow the codes: java.lang.IllegalStateException: A JTA EntityManager cannot use getTransaction()…
-
1
votes1
answer184
viewsWhy are tables created in Hibernate deleted after stopping the server?
I run my website and it generates the tables in the database. I can even register in the database by the site and its der a select it shows that it was registered. But if I stop the server, and see…
-
1
votes1
answer1203
viewsWELD-001408: Unsatisfied dependencies for type Servicelocator with Qualifiers @Default
I’ve been trying for a while to implement a JAX-RS (Jersey) server with Datasource, already migrated from Tomcat to Glassfish, and now from Glassfish to Wildfly 11, but I’m having the error below…
-
1
votes1
answer144
viewsHibernate Error Persist
I have a simple system of opening / calling query. I am in error when trying to insert a new call. I started using Hibernate and I have a problem with "persist" to add a call to a certain call…
-
1
votes0
answers47
viewsApplication Multi-tenancy Spring-mvc
Good evening guys, it’s been two weeks that I’m trying to develop a multi-tenancy application with spring mvc, but only think with spring boot, but without success. I wonder if anyone can help me. I…
-
1
votes0
answers23
viewsTreat link drop with JPA Hibernate bank timeout
I need to treat fall link application with the bank in addition to keeping a low timeout, since the standard in my tests is 15 seconds. Fault: Caused by:…
-
1
votes1
answer163
views -
1
votes2
answers112
viewsjava.lang.String cannot be cast to com.sisEnade.tcc.modelo.Questao
good afternoon. I have the following error: java.lang.String cannot be cast to com.sisEnade.tcc.modelo.Questao However, I was unable to resolve the error. The goal of the implementation is to create…
-
1
votes3
answers419
viewsWhat is the best strategy to load and persist 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 of my table. The idea is to load the records to the application, process the…
-
1
votes0
answers27
viewsNhibernate keep two Mapping for a single object
i would like to keep two different mappings for a single object is possible to do this with Nhibernate?
-
1
votes4
answers1245
viewsHibernate - How to search all rows of a table with Hibernate?
I am not able to find all rows of a table with Hibernate. Does anyone know the name of the method that does this?
-
1
votes0
answers228
viewsError: Failed to execute Goal org.codehaus.mojo:exec-Maven-plugin:1.2.1:exec
I am developing a web application with Spring + Maven + Hibernate, already created my class HibernateUtil and created a test class ConectaHibernateMySQL to verify my connection to the database.…
-
1
votes1
answer165
viewsError when viewing postgres table using Jpa, Hibernate and Postgres
I did a small project to test a small registration in a postgres table , using jpa, with Hibernate, I managed to make the registration class work, it inserts in the table without problems but I…
-
1
votes1
answer521
viewsOnetomany mapping with HIBERNATE associative table - JPA
I need to do a hibernate mapping of a relationship 1:N in two tables, however there is an associative table that has as columns the ids of the other two tables. Example: The table Servicos may…
-
1
votes1
answer210
viewsOperations in JPA
Good morning I am developing an application in which the user should inform the system a list of exams and the system display the laboratory units that perform such exams, however I am with a doubt…
-
1
votes0
answers67
viewsProblem to update data
Good morning friends, I am about 3 days with difficulties in an error that has been occurring in my application. I have two entities, CUSTOMER and VEI. I did the mapping bidirectionally saying that…
-
1
votes1
answer332
viewsjava.lang.Nosuchmethoderror: org.hibernate.cfg.Environment.verifyProperties(Ljava/util/Map;)V
Work in a Java project and when changing the machine I had to inform the libraries of the project again, but when compiling this generating an error in the output. Exit: Exception in thread "main"…
-
1
votes1
answer75
viewsJSTL adding null option inside select element
I build a line <tr> using Angularjs and JSTL, and within this line I have an element select where it is travelled by using <c:forEach> over an enumerator to fill it when the user clicks…
-
1
votes1
answer167
viewsConfiguration error on JPA and Postgresql connection
I am having problems connecting JPA with Postgresql. I believe the problem is in the configuration of the application. I am using the Java 8 version, and my pom.xml file is: <project…
-
1
votes2
answers601
viewsUnable to build Entity manager Factory ( Hibernate JPA )
I am trying to make a connection with Hibernate and JPA, but when trying to create the connection or persist some data it executes the following error: Dec 04, 2018 2:02:45 pm…
-
1
votes1
answer43
viewsProblem loading only required fields using Resultsettransformer in Hibernate
I’m trying to develop a method for through a SQL pure, seek only the fields necessary to mine query and finally, already bring the already mapped object. In this case the object would be…
-
1
votes1
answer483
viewsLogin with JAAS + Tomcat
I did the JAAS configuration procedures in my JSF project, when I try to access it shows the information that user and password does not check, but I have already created the user table. xml…
-
1
votes2
answers84
viewsJAVA + HIBERNATE
I started using Hibernate and I am very lay in the subject, what I really want to know is: When we map a class for Hibernate to automatically create the table in the database, it is possible to…
-
1
votes1
answer956
viewsHow to disable spring security
Good evening, I am learning jsf, so I followed some videos of Leandro Costa on youtube, I found it very didactic and etc. At the end of the course it provides the source code, however as the project…
-
1
votes0
answers217
viewsHow to close connection like Jparepository and Spring Boot
Hello, I am working on a project using Spring Boot and am using Jparepository. I need to close the connection after running a bank operation, for example: query - findAll(). I know it may seem…
-
1
votes0
answers76
viewsBoolean component and rendered components do not appear on my page
You guys! Good morning! I’m having a hard time here with JSF (it has to be this technology, because it’s the one I’m currently studying at home) I’m having trouble setting boolean component values…
-
1
votes0
answers32
viewsPrimefaces datascroller only loads once with Lazy
Guys, I started using dataScroller today with Lazy of the first faces <p:dataScroller ajax="true" id="listaDiarios" chunkSize="3" lazy="true" styleClass='ui-datagrid-no-border'…
-
1
votes0
answers48
viewsLimesurvey + Hibernate
I’m trying to develop an app that manages some surveys from the limeSurvey and for that purpose I am using Hibernate. So the whole problem is that the limeSurvey Give me the answers to each survey…
-
1
votes1
answer71
viewsHibernate with bank
I am using creating a program that adds an information in a database through Hibernate, almost an hour ago it was working perfectly, but now when I run the code generates these errors.…
-
1
votes2
answers327
viewsJPQL hibernate for multiple Ikes
I’m using Hibernate in my project and I’m having doubts about using multiple dynamic Ikes in my research. I have a simple field on the page where the client can enter a user’s name, but I need it to…
-
1
votes2
answers305
viewsError in web system authentication
I’m learning together with a tutorial to develop a petshop system and I’m getting the following hibernate error: Hibernate: selectcliente0_.idClient as idClient2_2_, cliente0_.email as email3_2_,…
-
1
votes0
answers177
viewsProblem with table generation (tutorial algaworks)
I’m reading the book Java EE 7, with JSF, primefaces and CDI. I got to the configuration part of Hibernate, but I’m having problems. I configured my application in a J2EE environment, with JSF and…
-
1
votes1
answer388
viewsDuplicate value in the bank when inserting new users with an already used Role (Spring-Security)
Hello I’m creating a simple web application with Springmvc and Spring Security. I did the User and Roles class as follows: @Entity public class Usuario implements UserDetails { private static final…
-
1
votes1
answer153
viewscreateQuery(HQL) returns Nullpointerexception when trying to perform LEFT OUTER JOIN
Personal talk, I have a problem trying to run an HQL on my application. The HQL is basically this: select c.id, c.solicitante from <mypackage>.Exame c LEFT OUTER JOIN…
-
1
votes0
answers111
viewsPlay Framework JPA postgres
Hello, I’m learning to work with Play! framework and I am having difficulty integrating my application with the Postgres bank, using Hibernate. The application does not use persistence, the bank is…
-
1
votes1
answer65
viewsDoubt about Hibernate Criteria
I am trying to make a system for service order just for me to train. In the service orders I can have several categories. And my doubt is time to display, for example, a ranking of the most used…
-
1
votes1
answer177
viewsMaven Spring MVC + JPA Project
I’m new to Spring MVC, created an example Maven project for Spring MVC using Hibernate and JPA. I found some problems when configuring persistence.xml but I could not use dartasource managed by…
-
1
votes1
answer281
viewsI can’t save in the bank and does not show error log in Hibernate project
In the project I use hibernate, and when I try to save a new client, it just shows the class validation message CadastroClienteService. The strange thing is that all fields are filled in the form,…
-
1
votes1
answer69
viewsHibernate - Dynamic Instantiation using Factory
I know that using the Dynamic Instantiation of Hibernate I can instantiate an object according to a constructor. The Problem: I need to optimize the system as much as possible, and with that ended…
-
1
votes1
answer819
viewsHow to make a basic configuration in the persistence.xml file to access a database in SQL Server 2008?
I searched about how to set up the file persistence.xml in a basic way, however, I was even more confused about this configuration. So I would like to know how I can make a basic configuration in…
-
1
votes1
answer212
viewsWhat would be equivalent to these two persistence.xml properties in Hibernate?
I have these two properties in eclipselink : <property name="eclipselink.logging.level.sql" value="FINE"/> <property name="eclipselink.logging.parameters" value="true"/> but I’d like to…
-
1
votes0
answers251
viewsVarious databases accessed at the same time JPA
Today I have the following scenario: my customers enter my site and appears the login screen, where I ask the User Group, Login and Password. For the Group I have a database, where it has the data…
-
1
votes0
answers1551
viewsUse SELECT NEW JPQL to popular DTO in a @Onetomany relationship
Talk to the guys! I am trying to popular my DTO object, whose main object has a Onetomany relationship. Follow the code for vcs observations: ## Mapped Object: public class Usuario implements…
-
1
votes3
answers1439
viewsSaving ID from a table with two Primary Keys with Hibernate
Hello, I am having a problem while saving data in one last table. Well, this table has two Foreign Keys and the same are Primary Keys: When going to Controller, save the table, I use the following…
-
1
votes1
answer81
viewsError with Hibernate when running server
When running wildfly I have the following error snippet in the log: 15:46:18,297 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service…
-
1
votes1
answer281
viewsDelete created entity from a Manytomany relation
I have a relationship ManyToMany amid users and profiles mapped with Hibernate: user: id name profile: id profile_name user_profile: user_id profile_id The mapping is done as follows: User:…