Questions tagged as 'hibernate'

1
answer

Working with Dates in JavaWeb

Hello, I'm doing a project that manages all the projects in my company, I'm using Hibernate, JavaWeb, primefaces, TDD and MVC standard . My entity is shaped like this for date variables: @Temporal(value = TemporalType.TIMESTAMP) @Colu...
asked by 22.09.2016 / 03:25
1
answer

@OneToMany without Primary Key

Is there a possibility to make a @OneToMany relation without Primary Key in the child table? Follow my two entities. Entity Noticia : @Entity @Table(name = "NOTICIA") @NamedQueries({ @NamedQuery(name = "Noticia.findAll...
asked by 25.08.2016 / 14:04
1
answer

Delete entity and all its Hibernate relationships

I have the entity Fatura that has a OneToMany relationship with the entity Item . When I try to delete an Invoice I get the following error:    Caused by:   com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationExc...
asked by 29.01.2016 / 13:34
3
answers

Error in Hibernate

I'm trying to make a small interaction with the MySQL database but when I run the test class the following error appears:    Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.cfg.Mappings (Ljava / util / Map; Ljava / util...
asked by 05.01.2016 / 02:20
1
answer

Problem running runnable JAR: Unable to load class [com.microsoft.sqlserver.jdbc.SQLServerDriver]

I am facing the following problem: we are in the development phase of a project, which involves the following technologies, SQL Server, Hibernate, maven, quartz and java. After the end of one of the coding phases we tried to generate a runna...
asked by 23.10.2015 / 16:06
1
answer

Java how to do a native query and return to a DTO list

I am using Spring Hibernate and am trying to do a native query with JOiN returning to a DTO list. I tried using @Query (value="", nativeQuery = true) with a List but it returns the serialized attributes. I also tried with @SqlResultSetMapping in...
asked by 27.07.2015 / 18:33
1
answer

JPA does not persist the Object in the bank

I have a problem in which I try to persist data in the Bank with JPA and hibernate only that it does not persist the Object. It creates the table but does not persist the data and no exception is presented. Follow below as I'm doing: pub...
asked by 17.06.2015 / 20:26
1
answer

List coming with null value

Well, it's the following, I have 3 methods that are called in init() of my Bean, only one works and the other 2 comes as null , already debuguei and in my ProductJPADAO the data is correct, but when you drop the data in the Lists,...
asked by 24.04.2015 / 04:31
2
answers

Error Too many connections Hibernate + MySQL

I have an application in development in Java using Hibernate and PrimeFaces, in the list of items I have the option to do a search for some information in real time using several filters. However when I run the application and perform some te...
asked by 17.03.2015 / 17:23
1
answer

(Hibernate2) GenericJDBCException: Could not execute query - Closed session error while navigating the platform

Good afternoon! I have a web application and I decided to migrate it to Cloud from google. When I start my tomcat, the application runs smoothly, but after a certain time, these errors begin to appear. 09:24:35,719 WARN [JDBCExceptionRepor...
asked by 25.05.2015 / 21:18