JBoss « Query « JPA Q&A





1. No entity found for query Exception    stackoverflow.com

I am executing the following lines:

  String queString = "some query string"
  Query q1 = em.createNativeQuery(queString, T03CallsLog.class);
  T03CallsLog newCall;
  newCall = (T03CallsLog) q1.getSingleResult(); //this line cause the ...

2. Insert Query in NativeQuery takes too much time to insert records+Jboss 5.1+JPA    stackoverflow.com

My projcet run on Jboss5.1 and I have used EJB3 & JPA 1.2 My concern is while executing insert query with selecting records from different tables in NativeQuery takes too much time ...

3. Cant select VIEW via dblink with JPA    stackoverflow.com

Using jboss5.1.x, EJB3.0 ,JPA3 I am trying to do 'select' query from view which is connected via dblink to another database. this is the view which is created in the oracle database:

 CREATE ...

4. JBoss/Hibernate IllegalArgumentException: Named query not Found    stackoverflow.com

I'm new to Java EE and having some trouble using named queries. We use JBoss 6 and Hibernate 3.6 (JPA 2.0). The entity is configured via annotations and not in the ...

5. How can I make a named query with IN actually work?    stackoverflow.com

class X {
Y y; // manyToOne
}
class Y {
Long id;
}

@NamedQuery(name = "someName", query = "from X where y.id in :ids")
I have public, table, entity and all other things on the Entities but ...

7. JBoss crashes on hibernate query    forum.hibernate.org

I am using JBoss Seam 2.2.0.GA, JBoss AS 5.1.0.GA and Oracle 10g. My application seems to be running fine except that a couple of queries are crashing the whole application. I have pasted one such query below. Code: @PersistenceContext EntityManager em; ... em.createQuery("FROM ExperimentalFactor ef").getResultList(); The JBoss seems to quietly shutdown when I make the getResultList() call with absolutely no stack ...

8. JBoss 3.2.1 Could not find UserTransaction in JNDI    forum.hibernate.org

Newbie Joined: Sat Aug 30, 2003 5:46 am Posts: 5 On Friday, I decided it was time to play with JBoss and Hibernate. So I took a small portion of my working Hibernate2 GUI app and with a little cut n paste created a stateless session bean, which contains my hibernate code. The trouble im having, and this maybe due to ...

9. classForName takes up time using SQL IN clause in JBoss    forum.hibernate.org

Hi, Maybe this problem is a JBoss issue, sorry for posting here... When I try to use a query like this: select t.number_, m.number_ from table_m as m, table_t as t where t.field1 = m.field1 and t.number_ in (:a0_, :a1_, :a2_, ... :a200_) ReflectHelper.classForName function is called 200 times and takes up too much time loading objects in JBoss (2.500 ms), ...





10. Cannot find UserTransaction with JBoss    forum.hibernate.org

I have installed my hibernate classes on JBoss using a service approach as described in Hibernate's document. At the beginning, I had my "Hibernate Service" called from a web application which is part of of an EAR. Everything worked fine. But I had to move part of the web application (the part that uses Hibernate) to another service. This service has ...

12. query caching & JBossCache    forum.hibernate.org

Hello All, I am using Hibernate (2.1.4), JBoss (3.2.3), JBossCache(1.0.2). JBossCache is wrapped around a home made MatrixCache that implments net.sf.hibernate.cache.Cache and, basically, delegates incoming calls to an instance of JBossCache. The JBossCache mode is LOCAL and isolation level is REPEATABLE_READ. I have tried to cache queries. But I encountered the following problem: After a table is updated, the MatrixCache.put() is ...

13. Query Works outside JBoss 3.2.6, but not inside.    forum.hibernate.org

14. Hibernate 3.0.1 + JBossCache 1.2.2 no query cache    forum.hibernate.org

Author Message youngm77 Post subject: Hibernate 3.0.1 + JBossCache 1.2.2 no query cache Posted: Mon Apr 18, 2005 12:07 pm Regular Joined: Thu Aug 26, 2004 9:23 pm Posts: 71 It appears that Query Cache is broken again between 3.0.1 and JBossCache. I can modify an object fine the first time then when I try to modify it again ...

15. HQL queries and JBoss 4.0.5.GA    forum.hibernate.org

16. Query on Cache for EJB3.0 entities on JBoss    forum.hibernate.org

Hi, I need to use JBoss cache for an applciation, to cache entites across a cluster. However, I want to configure it in such a fashion that once a POJO object for an entity is created, I should be able to write it only to JBoss cache. Database writes should be performed only based on some configuration for cache eviction, which ...