openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject Failed to use enhanced Embedded class instance as parameter for query.
Date Thu, 19 Mar 2009 09:31:23 GMT
Using Open JPA 1.2.0 and jdk 1.6.0_12 .

Failed to use enhanced Embedded class instance as parameter for query.
If this enhanced parameter instance is replaced inplace instantiated
instance of this Embeddable class then the query works. I tried to
lookout if someone has allready faced this problem and filed a bug but
no luck. Should i file a bug?

org.apache.openjpa.jdbc.meta.ClassMapping.toDataStoreValue invokes
enJPAStateManager,Column,JDBCStore). In that method from StateManager is
tried to fetch field by index which is wrong, because ClassMapping is
for this Embeddable class which in my case has only one field and index
is three so no field is found giving error:

org.apache.openjpa.persistence.ArgumentException: Field "3" is not
declared in "class org.apache.openjpa.enhance.<package><Embeddable
Class>$pcsubclass", or is not managed.

Terveisin / Best regards

Markku Saarela, Senior Consultant

TietoEnator Finland Oy, TGT Telecom / FITO PC Finland Operators
email, mobile +358 (0)40 590 6505
Kutojantie 6 - 8, FI-02630  Espoo, Finland,

Meet the new Tieto:

Please note: The information contained in this message may be legally
privileged and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, you are hereby notified
that any unauthorised use, distribution or copying of this communication
is strictly prohibited. If you have received this communication in
error, please notify us immediately by replying to the message and
deleting it from your computer. Thank You.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message