You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by Pinaki Poddar <pp...@apache.org> on 2010/02/05 20:33:26 UTC

Re: ClasscastException when ClassCrietria is not used.

Hi Ravi,
  I have not seen the domain model (though it sounds familiar ;) but from
your description, it appears that @ElementClassCriteria is appropriate in
this case. 

-----
Pinaki 
-- 
View this message in context: http://n2.nabble.com/ClasscastException-when-ClassCrietria-is-not-used-tp3290568p4521682.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.

Re: ClasscastException when ClassCrietria is not used.

Posted by Pinaki Poddar <pp...@apache.org>.
> But it is an openJPA specific annotation. 

Yes it is -- and it is natural to use OpenJPA-specific annotations when one
is using OpenJPA :)

But let me see the declaration for
Author's books field and other related ones.

-----
Pinaki 
-- 
View this message in context: http://n2.nabble.com/ClasscastException-when-ClassCrietria-is-not-used-tp3290568p4522418.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.

Re: ClasscastException when ClassCrietria is not used.

Posted by Ravi P Palacherla <ra...@oracle.com>.
Hi Pinaki,

@ElementClassCriteria resolves the issue.
But it is an openJPA specific annotation.
Hence I created JIRA-1200 for this and added a fix to it, which is already
commited into trunk.

Regards,
Ravi.
-- 
View this message in context: http://n2.nabble.com/ClasscastException-when-ClassCrietria-is-not-used-tp3290568p4522371.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.