Tagged Questions
3
votes
0answers
48 views
Hibernate / MySQL connection timeouts — Trying to deal with thread-pooled executors not releasing Hibernate connections to C3P0 after exit
I have a Tomcat application that uses MySQL, and Hibernate for ORM. The nature of our application demands that we have to pull and aggregate a lot of analytics data from a NoSQL store for each request ...
3
votes
0answers
46 views
JPQL Hibernate NULLS LAST being ignored
UPDATED - see answer in comment
I'm aware that CriteriaQuery.orderBy does not support NULLS LAST. I was trying to use a TypedQuery and noticed that it seems to just ignore everything after "NULLS ...
3
votes
0answers
188 views
Play Framework high latency
I created an web application using struts2, hibernate with mysql. I migrated to play framework so now I have two instance of the application one written in play the other with struts2. I can see a ...
3
votes
0answers
157 views
cannot generate hibernate.reveng.xml since the hibernate.connection.url is dynamic
I want to generate a hibernate.reveng.xml, but the "hibernate.connection.URL" in the hibernate.cfg.xml is a variable.
jdbc:jtds:sqlserver://${database.server.name}:1433/XXX_DB
so my question is ...
3
votes
0answers
291 views
activiti 5.9 using a hibernate session possible?
is it possible to use activiti together with hibernate instead of mybatis? The case is that our actual project uses hibernate as persistence framework and we use jbpm 3 for the processes. In jbpm 3, ...
3
votes
0answers
358 views
UnsupportedOperationException when merging an existing Hibernate model object?
After an upgrade from Hibernate 3 to 4, we're working through a few kinks that popped up along the way. One that has us particularly stumped is an UnsupportedOperationException, where an existing ...
3
votes
0answers
491 views
@OrderColumn generates a request to update the primary key
I use a list, the list is comprised of a compound primary key is a field that also I do the sorting of the list.
The problem is that if I delete an element in the list (key compound),
annotation ...
3
votes
0answers
252 views
Sun javac doesn't compile generated sources, while OpenJDK one does?
I am using JPA entities, and hibernate-jpamodelgen to generate sources for classes like EntityName_.java.
Strange thing is, when I run javac from Sun JDK (1.6.0_24) sources for EntityName_ are ...
3
votes
0answers
929 views
How to get Hibernate FetchProfile to load deep child objects in the hierarchy
I have the same question as someone posted in the Hibernate Community: FetchProfiles.
For performance reasons I have a relationship in the data model as follows:
...C -[FetchType.LAZY]-> D -> ...
2
votes
0answers
21 views
do implicit transactions not update second level cache?
In an post titled "Use of implicit transactions is discouraged" here, the post states that "forgoing the use of explicit transactions has the effect of mulling the 2nd level cache.....The reasons is ...
2
votes
0answers
35 views
WiFi conflicting with local mysql connection (Java/Spring)
I'm using java/spring to connect to a local mysql database and run some integration tests. Sometimes I get Hibernate errors saying that a connection cannot be established. I've noticed this only ...
2
votes
0answers
34 views
Unexpected ArrayIndexOutOfBoundsException in Hibernate UUIDTypeDescriptor$ToBytesTransformer.parse() method
I'm using Java 6 and hibernate-core-4.0.0.final.jar with hibernate-commons-annotations-4.0.1.Final.jar and hibernate-jpa-2.0-api-1.0.1.Final.jar
I have an entity with a java.util.UUID column as PK. ...
2
votes
0answers
64 views
Disable filter in the hibernate session
I have created a filter to apply for session of a particular bean. I enable the filter each time the session is fetched:
@Override
protected final Session getHibernateSession() {
...
2
votes
0answers
30 views
Challenge with getting correct mappings for aliases using Java+Hibernate+DB2
I am writing a Java application using Hibernate and IBM DB2 9.7 LUW for database. I am using the SQLQuery API to read a custom SQL query string and execute it against the DB. The query contains ...
2
votes
0answers
91 views
SmartGwt with hibernate for database connection
I am using eclipse indigo.I want to use hibernate with smartgwt smart gwt showcase
I have a grid so want data from database using hibernate datasource(ds) like smartgwt showcase EE. I don't ...