About SET

api-jdo

setIgnoreCache(ignoreCache)

Set the ignoreCache option.(Method of javax.jdo.Query)

 
forum_thread

InternalError on multiple AND and JOIN Query

Hi, Using objectdb 2.2.8_06. Running the following query: SELECT DISTINCT $1 FROM CDI $1 JOIN $1.contactDetails $2 JOIN $2.addresses $3 JOIN $3.attributeList $4 JOIN $2.phoneNumbers $5 JOIN $5.attributeList $6 WHERE ((($4.name='suburb') AND ($4.valueAsString='Los Angeles')) AND (($6.name='areacode') AND ($6.valueAsString='310'))) Getting: ... default-compile}] [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! ... [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! ... - debug attribute not set 09:30:08,828 |-INFO in ch.qos.logback.core.joran.action.AppenderAction ...

 
api-jdo

setResultClass(cls)

Specify the type of object in which to return each element of the result of invoking execute or one of its siblings.(Method of javax.jdo.Query)

 
forum_thread

Problem persisting a TreeSet field

Hello, I am getting a "java.lang.IllegalArgumentException: Can not set java.util.TreeSet field Message.children to java.util.HashSet" when persisting a Message object with a parent/children relationship: @ManyToOne private Message parent; @OneToMany(mappedBy = "parent") private TreeSet<Message> children; Seems that objectdb is converting TreeSet into HashSet? Why? http://www.objectdb.com/java/jpa/entity/types says TreeSet is supported... ... am getting a "java.lang.IllegalArgumentException: Can not set java.util.TreeSet field Message.children to java.util.HashSet" when ... a well defined traversal order when iterating through the Set. Best regards, Benjamin   ...

 
api-jdo

getFetchGroups()

Get a modifiable Set containing a mutable copy of all currently active (in scope) fetch groups.(Method of javax.jdo.PersistenceManagerFactory)

 
forum_thread

Explorer in 2.3

First, the new Explorer in ObjectDB is fantastic! This is exactly what we've needed - an easy way to do ad-hoc JPQL queries and navigate through the results and even make small changes to primitive data and Strings. After playing with it for a while, here is a list of additional features I'd love to have: 1. Export of selected data: a. Simple - Select a range of cells or a column header and copy text to the clipboard or save to a file (csv, html, etc..). (There appear to be copy menu options, but I cannot get them to work.) ... For #5 - I was talking about using a Java expression to set a value when editing a field, not a JPQL expression in a query. For ... a Java expression which will return the value I want to set in the field. This value might be something I want to compute, such as ...

 
forum_thread

Query vs Extent for retrieving data

I'm running into a problem where data that is retrieved via a Query comes out null, but when I retrieve it using an Extent everything is present. We have a very simple class: public class PositionReportManagerBean implements InstanceCallbacks { private int maxReports; private List<PositionReportBean> reports; } I have a test file with 5 instances of PositionReportManagerBean, each with maxReports set to 10 and 5 PositionReportBeans in reports. I can verify with the ObjectDB explorer that all of the data is there. If I call ... of PositionReportManagerBean, each with maxReports set to 10 and 5 PositionReportBeans in reports. I can verify with the ObjectDB ... are part of the returned Collection have the maxReports set to 10 as I expect, but the List of PositionReportBeans is empty. Is there ...

 
forum_thread

Activated ObjectDB still throws "Too many persistable types"

I have upgraded from 2.3.7 to 2.4.4 and now my activation won't work, throwing the dreaded com.objectdb.o.UserException: Too many persistable types (>10) - exceeds evaluation limit I have already reactivated and checked that my objectdb.conf is correctly used (by inserting random chars at the beginning of the file, which lead to an error). Yet I still get the error thrown. Nothing in my configuration changed except the version. What could possibly be the problem with that? ... 2.4.4 could cause problems only if the activation is not set correctly before. Make sure that activation code is set in the server configuration file (not on the client side). Since ...

 
forum_thread

How to do multithreading with embedded ObjectDB

Hi, I've tried to implement a counter with ObjectDB, but the following code doesn't work as expected: ... //Query q = em.createQuery("UPDATE Point SET x = x + 1"); Query query = em. createQuery ( "UPDATE Point SET x = x + 1" ) ; query. executeUpdate ...

 
forum_thread

Trouble bug on explorer

Hello having trouble when i try to push new objects from class. I got exception from explorer.     ... 2.4.1_06] javax.persistence.PersistenceException Failed to set numeric value of field field model.User.gid using enhanced method (error ... by: com.objectdb.o.UserException: Failed to set numeric value of field field model.User.gid using enhanced method at ... 2.4.1_06] javax.persistence.PersistenceException Failed to set numeric value of field field model.User.gid using enhanced method (error ...