member visiting in jpql

baURI is a byte[];
JP QL> select e.baURI.length from URI e where id=82778
JP QL> [ObjectDB 2.2.9_04] javax.persistence.PersistenceException
Navigation from 'byte[]' through 'length' is invalid (error 763)
at com.objectdb.jpa.JpaQuery.getResultList(
at util.JPQLcmd.QureyCMD(
at util.JPQLcmd.main(

Why I can not visit the length attribute?


Institute of Computer Technologies

The length field of arrays is not supported by JDOQL / JPQL queries.

You may maintain an ordinary int field (holding the array length) for this purpose.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login