Questions tagged as 'hibernate'

0
answers

The operation could not be performed because OLE DB provider "MSDASQL" for linked server "XYZ" was unable to begin a distributed transaction

I am trying to perform a update on a database on another server through a LINKED SERVER configured on my local server. I've tested it and it works perfectly when I use queries in the DBMS. In my web application, I use hibernate 3.5 and wh...
asked by 10.04.2015 / 19:28
0
answers

Hibernate + Maven + Glassfish

I have a Maven Project, which uses Hibernate, and has all dependencies ok. I have already created connection pool in glassfish. The problem is that even the class mapped with the hibernate annotations tip giving error talking that must...
asked by 09.03.2015 / 13:38
0
answers

Tomcat application + jsf + hibernate = Slow to initialize [closed]

My application is running very slowly. Follow the eclipse log where it takes the longest:   INFO: HHH000397: Using ASTQueryTranslatorFactory     
asked by 05.03.2015 / 12:52
0
answers

Hibernate + Ireports

I am trying to connect a Spring MVC project with Hibernate using JSP. But a problem comes up when I try to create a connection to import data into a report using JasperReports + Ireport technology. When I select the Spring loaded Hibernate conne...
asked by 03.09.2014 / 19:29
2
answers

persistence.xml for development and another for production?

I have my persistence.xml set to a local database. <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/meubanco"/> <property name="hibernate.connection.username" value="usuario"/> <property name="...
asked by 14.10.2014 / 15:14
1
answer

JSTL adding null option within select element

I construct a <tr> line using AngularJS and JSTL, and within that line I have a select element in which it is run using <c:forEach> on an enumerator to fill it when the user clicks to insert a new line <td&g...
asked by 28.10.2015 / 13:46
2
answers

Why does hibernate not list results if the select query calls null field of the table?

I have a Class-Entity Product. @Entity public class Produto implements Serializable{ @Id @GeneratedValue private long id; @Column(length = 70, nullable = false) private String cod; @Column(length = 100, nullable = f...
asked by 15.09.2016 / 18:57
0
answers

Instability retrieving updated objects list

I'm facing problems with Hibernate that seems to be related to the cache object. I have an entity, let's call it A, with a list attribute mapped with @OneToMany (cascade = CascadeType.ALL, mappedBy = "atributo") . The objects in the lis...
asked by 19.11.2014 / 18:04
0
answers

Adding results

I'm starting to use the framework uaiCriteria and I need a result that is a sum of records in a given period. Something like (simplified): select sum(valor), sum(desconto), data, idpessoa from tabela group by data, idpessoa I did:...
asked by 18.11.2014 / 18:00
1
answer

"Detached entity passed to persist" when entering the second time

I'm having an error when I try to insert a new user a second time. Error: 12:51:54 PM com.sun.faces.lifecycle.InvokeApplicationPhase execute WARNING: #{testeHibernate.save}: org.hibernate.PersistentObjectException: detached entity passed to...
asked by 31.08.2015 / 13:57