ObjectDB ObjectDB

member visiting in jpql

#1
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?

TIA

edit
delete
#2

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
edit
delete

Reply

To post on this website please sign in.