About getResultList

issue

Schema-Update: Rename superclass and remove one subclass

Hello, we renamed a superclass and removed one of the subclass. If we then try to open the Database (with ObjectDB-Explorer) we get a "Failed to generate dynamic type ..."   Small Example: Generate Database ... ; List<RenamedSuperClass> result = q. getResultList ( ) ; System. out . println ( ... com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:719) at ... com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:719) at ...

 
forum_thread

JPA JPQL WHERE clause for IN :variable not working if variable is a list of Enums

Hi, I have a case where I have a JPQL query like: "select o from MyEntity o WHERE (enumField IN :enumFieldList)" And enum field is defined in MyEntity as: @Enumerated(EnumType.STRING) @Column(nullable = false) @Index private MyEnumType enumField; And MyEnumType is defined as: public enum MyEnumType { VALUE1, VALUE2, VALUE3, VALUE4 } and I call: ... ; System. out . println ( query. getResultList ( ) ) ;   em. close ...

 
forum_thread

Field in Generic Class not persisted?

Hi, I am trying to persist a class which is extended from an abstract class - but fields declared inside the abstract class are not persisted - is that expected? I assume it can be done b/c this field can be recovered after serialisation/deserialization. Here is an code to demonstrate the problem Thanks   ... ) ; List<OBJ6> res = q. getResultList ( ) ; OBJ6 H3 = res. get ( ...

 
forum_thread

openejb jpa jaas module

    hello , i've finished jpa jaas module. Here it is :   package com.bayner.auth; import com.bayner.jpa.Principals; import com.bayner.jpa.UserInfo; import com.bayner.jpa.UserPrincipal; ... List<UserPrincipal> resultList = namedQuery. getResultList ( ) ; for ( ...

 
forum_thread

Failed to write the value of field using reflection (error 363) on LAZY fetch

Hi There I am using ObjectDB 2.6.3. I get the following Exception when I try to read my entities with a query where I have set to use LAZY initalization. It fails when it tries to set a 1:n member (e.g. a Modell has several Artikels) . When I remove the LAZY hint on the query execution it works. Any hints why this can happen? The Mapping of class Modell and its member: ... ) ; List<T> entities = query. getResultList ( ) ; } Stack Trace ...

 
tutorial

Step 3: Add a Main Class

Explains how to add the JPA tutorial Main class in Eclipse.... ; List<Point> results = query. getResultList ( ) ; for ( Point p : ...

 
tutorial

Step 4: Add a Servlet Class

Explains how to add a servlet that manages persistence using JPA and ObjectDB to an Eclipse Web Application.... "SELECT g FROM Guest g" , Guest. class ) . getResultList ( ) ; request. setAttribute ...

 
forum_thread

Memory leak with OutOfMemoryError exception

Hi, I'm new to using object databases. Currently I'm experience the following error: ... at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:686) at ... ;   List<DailyEntry> results = q. getResultList ( ) ;   em. close ( ) ...

 
forum_thread

Schema-Update: Rename superclass and remove one subclass

Hello, we renamed a superclass and removed one of the subclass. If we then try to open the Database (with ObjectDB-Explorer) we get a "Failed to generate dynamic type ..."   Small Example: Generate Database ... ; List<RenamedSuperClass> result = q. getResultList ( ) ; System. out . println ( ... com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:719) at ... com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:719) at ...

 
tutorial

Step 4: Add a Servlet Class

Explains how to add a servlet that manages persistence using JPA and ObjectDB to a NetBeans Web Application.... "SELECT g FROM Guest g" , Guest. class ) . getResultList ( ) ; request. setAttribute ...