About false

issue

Typo in ObjectDB 1.0 Manual

Support > Knowledge Base > ObjectDB 1.0 Manual > Chapter 7 "JDOQL Queries" > Section 7.2 "Query Filter Syntax" > Subsection "Fields" > Second to last sentence Remove "not" from that sentence.   "An attempt to access a field or invoke a method using a null reference results in a false evaluation for the containing expression but no exception is not thrown."   ... or invoke a method using a null reference results in a false evaluation for the containing expression but no exception is not ...

 
forum_thread

Search with wildcards and index issue

Hi, I have a search using wildcards: SELECT $1 FROM CDI $1 WHERE $1.loginId LIKE '%*_last%2' ESCAPE '*' This works perfectly when loginId has NO annotations. Now if I add to loginId the following annotations: @Index(unique="true") @Column(nullable=false,unique=true) the search no longer works. I have attached the unit test. (this is using 2.3.7_10) Thanks Paul. ... @Index(unique="true") @Column(nullable=false,unique=true) the search no longer works. I have attached ...

 
api-jdo

isDirty(pc)

Tests whether this object is dirty.(Method of javax.jdo.spi.StateManager)

 
api-jdo

javax.jdo.annotations.Key

Annotation for the key of a map relation.(Annotation of JDO)

 
api-jdo

jdoIsDirty()

Tests whether this object is dirty.(Method of javax.jdo.spi.PersistenceCapable)

 
api-jdo

Join.generateForeignKey

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

 
api-jpa

setRollbackOnly()

Mark the current resource transaction so that the only possible outcome of the transaction is for the transaction to be rolled back.(Method of javax.persistence.EntityTransaction)

 
forum_thread

UPDATE query to set a new field after schema change

I've added a new property/field to one of my objects and want to set the value of this (boolean) property to false for all existing entities in the DB. I tried to execute an update statement with the Explorer tool. The statement ends and tells me that 1000 entities have been updated. I then save the changes to the DB via file->save. But when I execute a select on the DB I see that the field is still "null" for all instances. How do I initialize the field? ... and want to set the value of this (boolean) property to false for all existing entities in the DB. I tried to execute an update ...

 
api-jdo

setRestoreValues(restoreValues)

If true, at rollback, fields of newly persistent instances are restored to their values as of the beginning of the transaction, and the instances revert to transient.(Method of javax.jdo.Transaction)

 
forum_thread

Metamodel Attribute NOT EQUALS to same Attribute in a different EntityManager

Attribute from Metamodel initialized on @PostConstruct event IS NOT EQUALS of any Attribute from Metamodel of a different EntityManager. I am testing one application over Spring Web MVC and I can not post one Simple Test Case. The problem is it: If I have two moments of initialization of "javax.persistence.metamodel" from EntityManager and these two metamodels come from different EntityManagers and the one of these is on a @PostConstruct event, they return not equals Attributes using the same entity.   ... equals ( sameAttributeOnController ) //is false   edit ...