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
votes1
answer195
viewsSpring Boot and Hibernate - problems to move up application and map classes into entities
the thing is, I created a page using Spring Boot, Thymeleaf, Hibernate e Mysql para cadastro de estacionamentos e veículos mas estou muito perdido em relação ao mapeamento das entidades e…
-
-1
votes1
answer59
viewsMy Spring Data Hibernate project does not create the tables in SQL Server
I am studying Spring Data with Hibernate and I am using the SQL server database. I set up the project, with the dependencies in the pom file. The project is complicated without errors, but does not…
-
-1
votes1
answer135
viewsIntellij Cannot resolves table "...."
All right? I have a question. I am creating an API with Spring Boot and Springdata, Hibernate, while trying to resolve a relationship Manytomany Intellij displayed an error Cannot resolve table…
-
-1
votes1
answer120
viewsHow do I leave my Hibernate (Spring Boot) dynamic query?
Hello I am trying to let my dynamic query down as follows: @Query("SELECT T.NR_EVENT FROM TB_TIMELINE AS T WHERE T.NR_PENUMPER = :customerCode") public List<TB_TIMELINE>…
-
-1
votes1
answer144
viewsMy Springboot Java EE application does not recognize my Docker mysql container
Good afternoon, For study purposes, I created a java application using Springboot and am trying to set up a mysql database that is hosted on Windows Docker. However, even with the container running…
-
-1
votes1
answer18
viewsIt is possible to perform queries in a table that is not mapped by Hibernate
I would like to list data from a table that is not mapped by Hibernate; that is, I have an Endity map table and I want to report a search in a table in my database that is not an Entity. That’s…
-
-1
votes1
answer65
viewsError trying to email in a spring boot project
I have the following error when I try to send an email in a spring boot project: javax.mail.Messagingexception: Could not Convert socket to TLS;…
-
-1
votes0
answers10
viewsProblem with connection between Java and Mysql using Hibernate
Hello I am trying to make a connection between Java and Mysql, and this appearing the following error: ago. 13, 2021 10:55:09 PM org.hibernate.jpa.internal.util.LogHelper…
-
-1
votes1
answer17
viewsHow to define which data of an ENUM the JPA will persist in the bank?
Hello, I would like to know how to annotate a property (ID) of my ENUM for when to persist in the bank? Because currently JPA is saving the index of the Enum array and not the ID... My Enum: @Getter…
-
-1
votes1
answer954
viewsManytomany mapping with additional column
In my study project, aimed at controlling football matches, I have the following entities: Gambler Name; Departure Date of implementation; Gols pro; Goals against; I still need to record the goals…
-
-1
votes1
answer46
viewsUsing a NOT Criteria with Hibernate
Currently, I have a survey with Criteria that brings me results normally, but I want to add an implementation like NOT. Does anyone have any idea how I could do that? I put in the code a comment…
-
-1
votes1
answer200
viewsCondition IF, ELSE
I have a Java Spring MVC application, with Hibernate and JPA and HTML interface. I have Two forms that depend on the Notebooks class registered and its attributes. The forms have the following…
-
-1
votes1
answer41
viewssave a record to a list of an entidate
Good evening, I’m practicing my study and I came across a problem. I have an entity User: @Entity public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private…
-
-1
votes1
answer62
viewsHow to persist data using JPA concatenated key in the @Manytomany relationship?
I have the first entity private static final long serialVersionUID = 2405172041950251807L; private static final String CAMPO_CODIGO = "CODIGO"; @Id @GeneratedValue(strategy =…
-
-1
votes1
answer31
viewsHow to popular only a part of the object with a query in Hibernate
Related to that question I asked earlier about Hibernate I am building a Restful API, and making a Join with 2 tables. However I would like to bring only some attributes from my Join table. Today my…
-
-1
votes1
answer190
viewsMetodo Post spring boot 2.2.2
Well guys I’m having a problem, I’m starting to learn spring boot and when I’m doing the POST method always back the error saying that it was not found Controller package Controller; import…
-
-1
votes1
answer25
viewsHow to do an UPDATE with Sqel Expression?
I’m trying to do an UPDATE and I’m not getting it, someone can identify a point of failure ? @Query(value="UPDATE cliente SET nome = #{#cliente.nome} WHERE id_cliente = 1", nativeQuery=true) Cliente…
-
-1
votes1
answer527
viewsHow to popular a list to DTO more simply
To show the list of a register in my system, I populate the query in a DTO as below. My question is: There is a simpler way to popular the query in the DTO list? public List<ObjetoDTO>…
-
-1
votes1
answer32
viewsError calling save method using JSF Hibernate JPA An established connection has been overridden by the software on the host computer
I am trying to save the data from my form but when I click save of error saying that "An established connection was annulled by the software on the computer". But when I test the save method using…
-
-1
votes1
answer217
viewsPrimary key composed of two foreign keys
Good afternoon to you all! I have a doubt in the structure of an Entity, I am using Hibernate+JPA. The class is a user rating, where one primary key will be the user (coming from the User class),…
-
-1
votes1
answer56
views -
-1
votes1
answer16
viewsOracle database data in combo box
In a Java project, I am using Hibernete, and Java Sprint Boot, the combo box was created in the registration screen, where the registration of a person is made, where a combo box is presented, with…
-
-1
votes0
answers11
viewsHow would be a good practice to create a new standard record for entities?
How good would be a practice to create a new default record of the entities below? I need this because front-end requirements require at least one record for an editable table to be shown. I thought…
-
-2
votes1
answer153
viewsHibernate libraries with JPA specification
I am using JPA and Hibernate and encountering difficulties regarding querys errors. I wonder if there is a specific JPQL library? and what are necessary for projects to sound this profile.
-
-2
votes1
answer771
viewsHibernate with Java 9
I have a personal project using Hibernate with java 9, and it doesn’t seem to run at all! Follow the error: log4j:WARN No appenders could be found for logger (org.jboss.logging). log4j:WARN Please…
-
-2
votes1
answer64
viewsConfiguration of Hibernate
I am in a web java project, using Hibernate, Maven, jsf, SGBD postgreeSQL and the apache Tomcat container, and now I am using the Hibernate configuration file (cfgConfig.XML) and would like to…
-
-2
votes1
answer65
viewsJava Web with Primefaces and Hibernate
I have problems with the Primefaces Dialog. I have a Dialog that will appear when I click on a commandButton, in the oncomplete method, of a datatable. This Dialog will have another datatable that…
-
-2
votes2
answers187
viewsNullpointerexception JPA with springboot
I have a problem that I believe is simple, but I’m having a hard time. To be more clear, I will summarize the idea of the project: I have a Client class and an Update class. The update class has as…
-
-2
votes1
answer72
viewserro_persistence_mysql8.0_hibernate_eclipse
Guys, I’m in my first persistence class, but the code is not working, **mysql persistence file:* <?xml version="1.0" encoding="UTF-8"?> <persistence…
-
-2
votes1
answer150
viewsHow do I leave a JPA transaction with Spring open?
I would like to know how to leave a JPA transaction with spring open, today I use the annotation @Transaction what happens is that every time I want to carry some attribute that is not like EAGER…
-
-3
votes1
answer43
viewsHibernate mapping error
Good afternoon person, could help me in a mapping error? Event class: @Entity @Table(name = "EVENT") public class Event { private static final long serialVersionUID = 1L; @Id…
-
-3
votes1
answer100
viewsNo Persistence Provider for Entitymanager named x
This my project does not recognize my Persistence Provider. It follows the same below. Your location plus dependencies: I’m calling the same through a very simple XHTML using a Managebean. Below…
-
-4
votes1
answer81
viewsAn application for several databases!
Personal someone would have an example there about several accesses in a web system? that is I have several databases in the cloud , aii os usuarios vao entrar com seus logins e password e cada um…
-
-7
votes1
answer190
viewsHow to exclude a parent entity without excluding the daughter entities?
How do I, by Annotations or methods to delete, or effect a update in a parent entity without being obliged to exclude the daughter entity, ex: public class Produto{ @Id @GeneratedValue int id; //...…