About member


Replication failed

Dear support members, I am trying to set up a replication url in objectdb.conf and have the the following error in the log files: [ObjectDB 2.3.4] javax.persistence.PersistenceException Failed to connect to server (Connection refused) (error 522) at com.objectdb.jpa.EMF.createEntityManager(EMF.java:176) My objectdb.conf: #1 2012-07-02 09:06 Dear support members, I am trying to set up a replication url in objectdb.conf and have the the following ...


IN operator syntax

Hi, what is the correct syntax for IN operator when list of literals ia used instead of parameter, e.g. SELECT FROM Info i WHERE i.status IN (1,4) ? (Suppose status is int.) I always get this exception: SELECT FROM Info i WHERE i.status IN (1 ==> , <== 4) javax.persistence.PersistenceException Unexpected query token ',' (closing ')' is missing) (error 752)   Query with only one item in list works fine: ... 1 ) The same behavior is when using MEMBER OF operator. Thanks. Marta   ...


Navigation and Parameters

Greetings ObjectDB team, Suppose I pass a List of persistent objects to some query as a parameter, can I navigate to those objects' fields ? E.g.: SELECT x FROM ClassX x WHERE x.a IS MEMBER OF :y.b... : SELECT x FROM ClassX x WHERE x . a IS MEMBER OF :y . b Thank You ! ...


@PrePersist not working correctly

I have a method to calculate some values before persisting to the database. So i annotated it with @PrePersist. If i merge an object the annotated method get's called but all members are on their default values. I only tried it with new objects. So merge get's an object with id = null and therefore shoud behave like persist. (I always use merge) If i set a breakpoint before the em.merge(..) call the object is ok. Inside the @PrePersist method all fields are cleared.  Bug Version: Priority: Normal Status: Fixed Replies: 1 Type:  Bug ...



Create a predicate to test whether the expression is a member of the argument list.(Method of javax.persistence.criteria.Expression)



Name of a field or property in the target class that acts as the ordering field or property for this member.(Annotation Element of javax.jdo.annotations.Order)



For use with addCategory and removeCategory calls.(Static Field of javax.jdo.FetchGroup)


Navigation through Path to evaluate collection

Hello, I need to evaluate a field ("identifier") which is situated in a collection, within an entity. As stated in the documentation it is not possible to navigate there with the dot operator since its a collection. Is it there a way to evaluate this field? Here is the query, the entity and the related embeddable class. Thanks ... "WHERE item.sku =: key " + "OR id MEMBER OF :item.apiId.identifier " + "ORDER BY item.sku DESC" ...


can not use spring-data-jpa repository with NamedQuery

in spring-data-jpa named queries are used to implement repository interface methods, see http://static.springsource.org/spring-data/data-jpa/docs/current/reference/html/#jpa.query-methods.named-queries for example ... , query = "select f from Foo f where :bar member of f.bars" ) public class Foo implements ...



Instances of the type ListAttribute represent persistent javax.util.List-valued attributes.(Interface of JPA)