Internal Website Search

101-150 of 200 results

@OneToMany(fetch = FetchType.LAZY) list is always null

= query. getResultList (); } public void addParent() { Parent parent = new Parent(); manager.persist ... Parent p"); parents = query. getResultList (); } public void addParent() { Parent parent = new Parent

Query causes an nternal exeption

.objectdb.o.OBC.onObjectDBError(OBC.java:1591) at com.objectdb.jpa.JpaQuery. getResultList (JpaQuery.java:738 ... .java:225) at com.objectdb.jpa.JpaQuery. getResultList (JpaQuery.java:726) ... 22 common frames omitted

Eager Fetch is not stable for collection or map types?

);     List result = query.setParameter("id", id). getResultList ();     ... .class); List result = query.setParameter("id", id). getResultList (); if(result.size() 0) { Game g

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

; query. getResultList ();   System.out.println( "persisted Guest count: " + guests.size() );   ... ;       return query. getResultList ();     } } clicker

"where in" query

;      List resultList = query. getResultList ();       ... )); results = prezs. getResultList (); (Prez entities with id 1,3 do exist) Thanks. prezage Louis I tried

Merge Issue: Attempt to reuse an existing primary key value

.class). getResultList ();         Assert.assertEquals(2 ... b", B.class). getResultList ();         Assert.assertEquals(2

Cannot sort descending, when ordering by caluculated float in a method

. getResultList ();         System.out.println(resultList);    ... () desc"); List resultList = query. getResultList (); System.out.println(resultList); em.close(); emf

Issue with orphanRemoval and multiple EntityManagers

; ElectronicAddress.class);         List res3 = q3. getResultList ();   

JPA inheritance issue with ObjectDB - Field not found in type error

(pPara, pVal); } } List ts; try { ts = qry. getResultList (); System.out.println("Results found: " + ts

Embedded List

;   List lstItems = tqItems. getResultList ();         

CriteriaQuery .where() for multiple conditions

When using the below, there appears to be an OR condition:   criteriaQuery.where(criteriaBuilder.equal(root.get("name"), name)); criteriaQuery.where(criteriaBuilder.equal(root.get("surname"), surname)); List allPersons = query. getResultList (); The results will contain records where name

Problem of query With an aggregate function

.getEndDate())); List listRes = new ArrayList (); listRes = (List ) listClassRepHost. getResultList (); List

Optimistic locking: prevent version increment on entity collection attribute

", Document.class). getResultList () and then loop through the result. Hope you can help. Thanks @Entity public

Mismatch client-server protocol prefix

)         at com.objectdb.jpa.JpaQuery. getResultList (JpaQuery.java

Problem with queries on lists with reverse mapping

= query7. getResultList (); assertEquals(1, q7results.size()); It looks like the result is not filtered

ORDER BY problem, when String starts with language specific character

("a", "c"));         List resultList = query. getResultList ();  

Selecting random rows

Hello is there way to get random rows? Functions like rand(), random(), newid() doesn't work ;/ for example: em.createQuery("SELECT s FROM StawkaVat s ORDER BY rand()").setMaxResults(5). getResultList (); gives exception: Exception in thread "AWT-EventQueue-0" [ObjectDB 2.5.6_02] SELECT s FROM StawkaVat s == rand

General Performance Issues Illustrated with a Specific Method

.setParameter(paramName, paramValue); } } List resultList; try { resultList = qry. getResultList (); } catch

Query over the keySet of a map field with collection parameter

, EntityParent.class); q.setParameter(1, values); List result = q. getResultList (); @Entity public

Performance in SELECT statement

", EnumSet.of(State.NEW, State.ACKNOWLEDGED)); List results = query. getResultList (); I

Need help to make this test work and define proper annotations for entities Lists

;       System.out.println("result.order.name: "+query. getResultList

Type xxx is not found (error 301)

The error: Type User is not found (error 301) occurs when I query the db for a type before any instances of that type have been persisted, e.g.: return em.createQuery ("SELECT a FROM User a"). getResultList (); What I was expecting was an empty list, not an error. Is there some enhancement

member visiting in jpql

baURI is a byte[]; JP QL select e.baURI.length from URI e where id=82778 JP QL [ObjectDB 2.2.9_04] javax.persistence.PersistenceException Navigation from 'byte[]' through 'length' is invalid (error 763) at com.objectdb.jpa.JpaQuery. getResultList (JpaQuery.java:636) at util.JPQLcmd.QureyCMD(JPQLcmd

Retrieve data of all entity classes in a single query

= query. getResultList (); for(Athlete result : results) { System.out.println(result.Code

Query by array element

. getResultList ().size());              

Getting this error when fetching records from mem db.

.jpa.JpaQuery. getResultList (JpaQuery.java:407) Manoj Manoj Kumar Maharana Thank you for this report

Is there any faster select method?

SELECT: TypedQuery query = em.createQuery(     "SELECT p FROM Point p WHERE p.id = " + element.getId(), Point.class); List points = query. getResultList (); WRITE: em.persist(p); ** the Point class is of the tutorial. I found the above select method is ten times slower

New to Product & Having An Issue

departments; try{ do{ departments = q. getResultList (); em.getTransaction().begin(); for(Department d

Unexpected behaviour upon update. Bug?

;     . getResultList ().listIterator().next(); System.out.println(simple.v

objectdb got hang after fetch some record.

.objectdb.o.QRR.i(QRR.java:129) com.objectdb.jpa.JpaQuery. getResultList (JpaQuery.java:407) - locked com

java.sql.Date equals comparison not working with CriteriaAPI

resultList = query. getResultList ();         System.out.println

Internal exception when updating date filed (TemporalType.DATE)

;         List persons = personQuery. getResultList ();  

openejb jpa jaas module

("UserPrincipal.findAll", UserPrincipal.class); List resultList = namedQuery. getResultList

Query all objects that implements a given interface - is that possible?

. getResultList (JpaQuery.java:695) at DB.DB_for_Signals$ActualDB.ALL(DB_for_Signals.java:105) at DB.DB_for_Signals

ClassCastException on SELECT NEW ... after UPDATE over Java RMI

;       List resultList = query. getResultList ();     

Group by date / time

;  List resultList = query. getResultList ();        

Unexpected exception during query, if entity is not enhanced

.jpa.JpaQuery. getResultList (JpaQuery.java:733) at com.btc.ep.base.dal.internal.services ... .JpaQuery. getResultList (JpaQuery.java:721) ... 19 more   btc_es BTC EmbeddedSystems The log message

com.objectdb.o.InternalException

No idea what happened.  A simple getResultList () opearation. DB table affected size is ~ 26000 records, physical DB file size is ~ 8.5MB Thanks for any help ! Leon log file ... ) at com.objectdb.jpa.JpaQuery. getResultList (JpaQuery.java:719) at com.gsi.sync.UpDowloadProcessor

new database error

.QRR.i(QRR.java:155) at com.objectdb.jpa.JpaQuery. getResultList (JpaQuery.java:721) at org.radius

com.objectdb.o.InternalException NPE

. getResultList (JpaQuery.java:635) at com.vaisala.jx.db.gdm.facade.DataValueFacade.find(DataValueFacade.java

[ObjectDB 2.6.7_04] Unexpected exception (Error 990)

. getResultList (JpaQuery.java:719) at com.btc.ep.base.dal.internal.services

Strange Error with Criteria API and Sorting

). getResultList ();   for (TestEntity e : result)   {    System.out.println("Name

retrieval again and again started

.java:154)     at com.objectdb.jpa.JpaQuery. getResultList (JpaQuery.java:726)   

reading from table gives Unexpected exception

;   at com.objectdb.jpa.JpaQuery. getResultList (JpaQuery.java:716)     at main

Unexpected not reproducable exception in a query

.objectdb.o.QRR.i(QRR.java:154) at com.objectdb.jpa.JpaQuery. getResultList (JpaQuery.java:721) at com

Deleting archive log folder causes exception

.java:244) at com.objectdb.o.QRR.f(QRR.java:153) at com.objectdb.jpa.JpaQuery. getResultList (JpaQuery

[ObjectDB 2.2.5_02] Unexpected exception (Error 990) com.objectdb.o.InternalException: java.lang.NullPointerException: null

); } return q. getResultList (); } finally { em.close(); } }     Also, the entity class @Entity

Application not starting after enhancement

. getResultList (JpaQuery.java:726) The Data class is a simple @Entity which extends

[ObjectDB 2.5.1_05] Unexpected exception (Error 990)

.jpa.JpaQuery. getResultList (JpaQuery.java:686) at com.ysoft.cache.objectdb.ObjectCacheDB.search

Unexpected query token - AS

.objectdb.o.QRR.i(QRR.java:154) at com.objectdb.jpa.JpaQuery. getResultList (JpaQuery.java:726)