Re: Can't query against a MappedSuperclass

2009-04-21 Thread Jeremy Bauer
manual: Unlike true entities, you cannot query a mapped superclass http://openjpa.apache.org/builds/latest/docs/manual/manual.html#jpa_overview_meta_embeddablesuper --- On Mon, 4/20/09, jim weaver jewea...@us.ibm.com wrote: From: jim weaver jewea...@us.ibm.com Subject: Can't query against

Re: Can't query against a MappedSuperclass

2009-04-21 Thread Fay Wang
techhu...@gmail.com Subject: Re: Can't query against a MappedSuperclass To: users@openjpa.apache.org Date: Tuesday, April 21, 2009, 8:52 AM Hi Jim, It looks like there are inconsistencies in the manual and provider.  I was able use the em.find() operation with a mapped superclass, but could

Re: Can't query against a MappedSuperclass

2009-04-21 Thread Jeremy Bauer
wrote: From: Jeremy Bauer techhu...@gmail.com Subject: Re: Can't query against a MappedSuperclass To: users@openjpa.apache.org Date: Tuesday, April 21, 2009, 8:52 AM Hi Jim, It looks like there are inconsistencies in the manual and provider. I was able use the em.find() operation

Re: Can't query against a MappedSuperclass

2009-04-21 Thread Fay Wang
Ya, this apparently is an inconsistency... --- On Tue, 4/21/09, Jeremy Bauer techhu...@gmail.com wrote: From: Jeremy Bauer techhu...@gmail.com Subject: Re: Can't query against a MappedSuperclass To: users@openjpa.apache.org Date: Tuesday, April 21, 2009, 9:53 AM Hi Fay, The JPA 1.0

Can't query against a MappedSuperclass

2009-04-20 Thread jim weaver
I have the following: @MappedSuperclass class A { } @Entity class B extends A { } @Entity class C extends A { } and I try to do this type of query: SELECT a FROM A a I receive error message An error occurred while parsing the query filter SELECT a FROM A a. Error message: The name A is not

Re: Can't query against a MappedSuperclass

2009-04-20 Thread Marc Logemann
In the same documentation the following is stated and this was always my definition of querying mappedSC. Section 1.3 A mapped superclass is a non-entity class that can define persistent state and mapping information for entity subclasses. Mapped superclasses are usually abstract. Unlike