About false

forum_thread

A nested SELECT

Hello. I have a query UPDATE Look l SET l.partlySold = FALSE WHERE (SELECT count(a) FROM l.things a WHERE a.thing.status != :status) <= 1 which doesn't work: "Unexpected query token 'SELECT'". Does ObjectDB support queries like this? Thanks. ... UPDATE Look l SET l . partlySold = FALSE WHERE ( SELECT count ( a ) FROM l . ...

 
forum_thread

Objectdb ignores not null annotations

I'd like to mark field of an entity not nullable so that when developer tries to persist such entity exception gets thrown... I've tried @Column(nullable = false) (i even tried @NotNull which is not JPA, anyway I've tried :) Please specify valid way to mark a field (might be of another Entity type or primitive) not nullable... Regards ... thrown... I've tried @Column(nullable = false) (i even tried @NotNull which is not JPA, anyway I've tried :) ...

 
api-jdo

isNew(pc)

Tests whether this object has been newly made persistent.(Method of javax.jdo.spi.StateManager)

 
api-jdo

isNew(pc)

Tests whether the parameter instance has been newly made persistent.(Static Method of javax.jdo.JDOHelper)

 
api-jpa

close()

Close the factory, releasing any resources that it holds.(Method of javax.persistence.EntityManagerFactory)

 
api-jdo

jdoIsNew()

Tests whether this object has been newly made persistent.(Method of javax.jdo.spi.PersistenceCapable)

 
api-jpa

MapKeyColumn.unique

(Optional) Whether the column is a unique key.(Annotation Element of javax.persistence.MapKeyColumn)

 
api-jpa

javax.persistence.EntityManager

Interface used to interact with the persistence context.(Interface of JPA)

 
api-jdo

Join.generatePrimaryKey

Generate or assume a primary key constraint exists on the column or columns associated with this join.(Annotation Element of javax.jdo.annotations.Join)

 
forum_thread

PersistenceManager.getObjectsById(Collection,boolean) throwing JDOException

I have a call to getObjectsById(Collection,boolean) that is throwing a JDOException the first time I'm attempting to retrieve an object. If I try again, then the second request succeeds. Any idea why this might occur? We're using ObjectDB 2.2.4_02. The collection being passed in is a HashSet<Object> containing a single oid object (the method is written to support multiple objects, but it seems to only be failing irregularly when only a single oid is present). I'm passing false in as the verification argument.... when only a single oid is present). I'm passing false in as the verification argument. What happens if getObjectsById() ...