About Data Source

issue

ClassCastException thrown when running count query

Hello! Attached you find a full stacktrace. The query was: ... evaluating your product. So i insert and delete a lot of data. I also tried to run your DB Doctor. It doesn't help. Please ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
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): ... entity nevertheless gets comitted perfectly right and all data is correctly written so I have no clue what's going on!?? ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

ObjectDB CRUD Examples

Any place where I can find Netbeans examples for the basic create, read, update, delete methods using the EntityManager? i.e. public void create(Foo foo) {} public Foo read(Integer id) {} public List<Foo> read() {} public void update(Foo foo) {} public void delete(Foo foo) {} ... a query. After closing the EntityManager , only data that was eagerly fetched will be available. ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

@ElementCollection of type enum

Hi! I have in an entity called User with the following field: @ElementCollection(fetch = FetchType.EAGER) private Set<UserPermission> permissions; package x.x.x.x public enum UserPermission { BASIC, COACH, ADMIN } Use case: there are users which contain the first 2 permissions (BASIC and COACH, so the first 2 entries). ... for example, BASIC231 between BASIC and COACH values, data in ObjectDB will be altered in a way that the users that previously had ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

How to use JOIN FETCH?

The ObjectDB manual (http://www.objectdb.com/java/jpa/query/jpql/from) gives an example of using JOIN FETCH to avoid excessive round trips to the database: ... over the same set of objects, returning different sets of data.  The same relationship will need to be retrieved both eagerly and ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

@AttributeOverrides , and postgresql + own TYPE

Hello,  first of all i want to thank for this is site. I'm begginer in Java and also in JPA and this site is very helpful for me. Now What is my problem. Unfortunately  i have to work with postgresql + JPA + eclipselink, because is my school project. Database is final and i can't do any changes even if i wanted to. In structure of DB  is this. -- -- Name: address; Type: TYPE; Schema: artio; Owner: facman --   ... 3.If there will be getAddress method what data type it will be ? Array ?  4.I uploded for you my entity ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ... Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments . ...

 
forum_thread

Start ObjectDB inside java code.

I am building an MMORPG with ObjectDB, and I use it both for the saving of character and inventory (permanent object), but also the storing of ability and maps information (object I load, use, and dispose and then reuse without having change anything). The problems is, as my server and client both run on the same machine and more than one client can be started, they all need access to this information without being able to share any thread, so am forced to use the server model. ... />         <data path="$objectdb/db" />         ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

Remove not working

Hello! We have a strange problem. ... is true . Listing objects : Object1, My data for Object1. Object2 , My data for Object2. Listing objects ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
issue

InternalException during producer/consumer scenario

Hi, I'm trying to use objectdb in a producer/consumer scenario. Producer threads put message objects into a table while consumer threads remove the objects based on age, priority, etc. There are 2 main motivations for using objectdb for this purpose rather than a queue or similar data structure: 1) The consumer can select the "next" object based on a range of potentially complex criteria. 2) The number of objects produced can be potentially exceed available memory so can be held on disk within the objectdb file. ... objectdb for this purpose rather than a queue or similar data structure: 1) The consumer can select the "next" object based on a ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
issue

java.lang.ClassCastException: com.objectdb.o.RFV cannot be cast to com.objectdb.o.RSV

The following query: SELECT count(m) FROM Message m WHERE m.attachments.original=:template is generating this exception: ... a Drill instead of a Template. Updated: Sample data file removed now that the issue is resolved. ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...