Hi mike thank you I am using openJPA 1.2.1 and I also have tested it with 1.2.2 . It doesn't work with both of them. I have tested it with runtime and build time enhancement.The problem exists with both. and my persistence.xml is something like this
-------------------------------------------------------------------------------------------------------------- <property name="openjpa.jdbc.DBDictionary" value="oracle(batchLimit=0)" /> <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(foreignKeys=true,schemaAction='none')" /> <property name="openjpa.jdbc.MappingDefaults" value="ForeignKeyDeleteAction=restrict,JoinForeignKeyDeleteAction=restrict" /> <property name="openjpa.RestoreState" value="all" /> <!-- Logging --> <property name="openjpa.Log" value="Tool=INFO,SQL=TRACE" /> <property name="openjpa.TransactionMode" value="managed" /> ------------------------------------------------------------------------------------------------------- Any way I have tested it without any openJPA specific configuration and I am sure enhancement was done on the entities(I checked it by decompiling) Best regards ahad -- View this message in context: http://openjpa.208410.n2.nabble.com/problem-using-subclass-object-as-query-parameter-tp5506089p5510598.html Sent from the OpenJPA Users mailing list archive at Nabble.com.