Home » Support » Forum » member visiting in jpql

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(JpaQuery.java:636)
at util.JPQLcmd.QureyCMD(JPQLcmd.java:43)
at util.JPQLcmd.main(JPQLcmd.java:28)

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