About field

issue

InternalException

Hi, 3 Days before our rollout.. We've just got this when trying to commit persist of a bunch of entities into the DB   Bug Version: 2.4.0 Priority: Normal Status: Closed Replies: 2 Type:  Bug ...

 
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

Multi part paths in a composite index must have the same length

Hi, I am trying to create some index in a DB - but I get an exception when i try to commit. Exception in thread "main" [ObjectDB 2.6.0_01] javax.persistence.PersistenceException Invalid index path 'tStamp.value / instrumentId' in type Entities.OrderBookNew (error 328) at com.objectdb.jpa.EMImpl.createQuery(EMImpl.java:958)   Here is how the class of the persisted object looks like #1 2015-01-15 03:15 Hi, I am trying to create some index in a DB - but I get an exception when i try to commit. Excepti ...

 
issue

Unexpected error when loading all entity instance

Hi, when going through all entity instance to find orphaned entries we get the exception: ... references using queries (select from <type> where field=<instance>) 3. Load the next 10.000 instance and start over ...

 
forum_thread

A bidirectional OneToOne association with a shared primary key

Hi, In Hibernate, it is possible (using Hibernate specific annotations) to define a bidirectional @OneToOne association that has a shared primary key, example: http://fruzenshtein.com/bidirectional-one-to-one-primary-key-association/ ... is more common, and you may want to set an index on the field to accelerate traversing in the other direction. ...

 
tutorial

Step 3: Define an EJB Session Bean

Explains how to define an EJB session bean in a NetBeans Java EE web application.... automatically and injects it into the  em field (because it is annotated with the  @PersistenceContext ...

 
forum_thread

No clue how to query with collection

Hi there! Actually, what I have is something like: @Embedable class Address { String getStreet(); int getStreetNo(); } @Entity class Contact { Collection<Address> getAddresses(); }   ... If it doesn't work, consider maintaining a field in Contact just for ordering. It might also improve ...

 
tutorial

Step 3: Define an EJB Session Bean

Explains how to define an EJB session bean in an Eclipse Java EE 6 web application.... automatically and injects it into the em field (because it is annotated with the @PersistenceContext annotation). ...

 
forum_thread

turn off auto-serialization

Hi    As far as I understand if you have a classe that implements Serializable and is referenced by an Entity it will be automatically stored using standard serialization mechanizm.  Is there any option to turn off that feature so that if an un-enhanced (Serializable) class is referenced an error will be printed ??   Thanks in advance b ... any preStore callback or listener so I could not check field structure and I'm unable to change for example instance of Class into ...

 
forum_thread

Sorting problem

Hi, I was rewriting our DAO to support pagging in large dataset and I think I have found a problem with sorting. I send you a test case - sorry for using the same project as previous, but it was faster to write this test case. As usual, you can load data with DataLoader and then check problem with QueryData. There is a simple query with "order by" sentence: ... values (numbers, strings, dates and other objects). Using field names and other expressions as arguments is not supported. For ...