About files

issue

ClassCastException thrown when running count query

Hello! Attached you find a full stacktrace. The query was: Bug Version: Priority: Normal Status: Fixed Replies: 6 Type:  Bug ...

 
forum_thread

Working with a cleared cache

I'm working on trying to improve the performance of our database processing class and I'm attempting to keep the L1 cache within the PersistenceManager cleared in an effort to reduce its memory footprint. The code snippet below is part of a Callable task that is run repeatedly with a given list of commands. When I run the code as written I start getting the stack traces that are listed.  However, if I comment out the calls to makeTransactionalAll() and evictAll() everything works. #1 2011-08-18 15:42 I'm working on trying to improve the performance of our database processing class and I'm attempting to k ...

 
issue

NoResultException: No matching results for a unique query

I am very often getting a "com.objectdb.o._NoResultException: No matching results for a unique query" when modifying my already persisted entities within a transaction. I cannot replicate it however because it happens infrequently. The weird thing is that the entity nevertheless gets comitted perfectly right and all data is correctly written so I have no clue what's going on!?? Here's the stacktrace (copy+paste from debug output): Bug Version: Priority: Normal Status: Closed Replies: 6 Type:  Bug ...

 
forum_thread

find() delay

Hi, I tried objectdb in following steps: 1, for 1 to 30 {trans.begin(); create typeC o; em.persist(o); trans.commit();} 2, for 1 to 30 {p = em.find(typeC.class, i); print(p)} So simple a test, there is no result in one go; I have to disable step 1 and run again, then Step 2 output the expected results. I tried em.flush(), em.clear(), etc.. that do not work. Any idea? TIA #1 2011-05-23 09:54 Hi, I tried objectdb in following steps: 1, for 1 to 30 {trans.begin(); create typeC o; em.persist(o); tr ...

 
forum_thread

Broken @ManyToOne reference

Hi, I have objects of type A belonging to objects of type B, defined as follows: @MappedSuperclass public abstract class A {   @Id   @ManyToOne(fetch = FetchType.EAGER, cascade=CascadeType.ALL, optional=false)   private B b;   @Id   @Column(length = 36)   private String stringId; } @MappedSuperclass public abstract class B {   @Id   private String name; } #1 2013-03-18 14:27 Hi, I have objects of type A belonging to objects of type B, defined as follows: @ MappedSu ...

 
issue

JPA Composite Key make Object Db throws "Unexpected exception (Error 990)"

Hello Object Db community :) I am using this wonderful library and I caught a strange exception while testing the "composite key" feature in JPA. Let's see what I am doing : @Entity public class Book {     @EmbeddedId BookId id; } @Embeddable Class BookId {     Integer bookIdCountry;     ECountry country; } My BookId contains 2 attributes: One Integer and one enum. Bug Version: 2.4.0 Priority: Normal Status: Fixed Replies: 3 Type:  Bug ...

 
forum_thread

Failed to generate dynamic type objectdb.java.util.ArrayList

Ran into this error recently on a deployment server. Any thougths?     #1 2011-07-22 23:05 Ran into this error recently on a deployment server. Any thougths?     ...

 
issue

Weird issue with variable naming

hi, Bug Version: Priority: Normal Status: Fixed Replies: 4 Type:  Bug ...

 
forum_thread

how to query by properties of onetomany relations? (Error 990)

the following code fails em.createQuery("select f from Foo f where f.bars.name = ?1", Foo.class).setParameter(1, barName) stacktrace: #1 2011-05-10 21:39 the following code fails em. createQuery ( "select f from Foo f where f.bars.name = ?1" , Foo. ...

 
forum_thread

Visibility of changes in Transaction is not visible to a JPA QL Query

I have two simple Entities ( see attachment ) and a simple SLSB with container managed transactions which is called by a trivial servlet. Inside a UserTransaction I add a number of items then check to see that they have been added #1 2011-08-24 19:11 I have two simple Entities ( see attachment ) and a simple SLSB with container managed transactions which is call ...