ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh
131

Null enums and IS (NOT) NULL: NullPointerException

Hello. I'm getting NullPointerException when adding %enum field% IS (NOT) NULL or == (!=) NULL in ... .exampleEnum IS NULL"); entities = query.getResultList(); } public void method ... you for this report. Comparing enum values to NULL was fixed in build 2.5.5_03. support Support
29

Comparison in JPQL and Criteria API

, there is also a difference in the way that NULL values are handled by these operators. Comparing NULL values The following table shows how NULL values are handled by each comparison operator. One column presents a comparison of NULL value with a non NULL value. The other column presents a comparison of two NULL
27

Logical Operators in JPQL and Criteria API

must be one of: TRUE, FALSE, and NULL. The following table shows how the AND operator is evaluated based on its two operands: TRUE FALSE NULL TRUE TRUE FALSE NULL FALSE FALSE FALSE FALSE NULL NULL FALSE NULL NULL represents unknown. Therefore, if one operand is NULL and the other operand is FALSE
19

com.objectdb.o.InternalException: null

PersistableObject {     @OneToOne(mappedBy = "spouse")     private Customer spouse = null;     private Date dateOfBirth = null;     private String firstName = null;     private String lastName = null;     private String personalNumber = null;     private String street = null;     private String
19

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

via a querying @EJB gives many fields null (and not even empty, I mean truly null). In the following ... @OneToOne relationship fields that likewise become null: private List<Element> ownedElements = new ... []: Created: com.greensoft.entity.test.TestDeepValues [null](TEST: test deep values) INFO: RequestBean
19

com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null:

.ArrayIndexOutOfBoundsException: null java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native ... (InstantiationException ex) { logger.log(Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { logger.log(Level.SEVERE, null, ex); } catch
19

"is not null" queries not working with index

"is not null"-queries are not working correctly for indexed fields. Following SSCCE creates 1000 entities. A null value is assigned to an indexed field for every second entity. When doing count ... ();         for (int i = 0; i < 1000; i++) {             em.persist(new Foo((i%2)==0 ? i : null
19

Literals in JPQL and Criteria Queries

including NULL, boolean literals (TRUE and FALSE), numeric literals (e.g. 100), string literals (e.g ... and never replaced. The NULL literal The NULL literal represents a null value, similarly to null in Java and SQL. Since JPQL is case insensitive, NULL, null and Null are equivalent. Notice
5

Constants.OPTION_NULL_COLLECTION

Static Field javax.jdo.Constants String OPTION_NULL_COLLECTION "javax.jdo.option.NullCollection" Since: JDO 2.1 See Also: PersistenceManagerFactory.supportedOptions()
5

ForeignKeyAction.NULL

Enum Constant javax.jdo.annotations.ForeignKeyAction NULL Since: JDO 2.1

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support