JIRA done : https://issues.apache.org/jira/browse/OPENJPA-1956

Sorry for not being able to add a patch.

On 5 mars 2011, at 23:41, Rick Curtis wrote:

> +1 gets my vote.
> 
> Go ahead an open a JIRA....  and a patch would be nice. :)
> 
> Thanks,
> Rick
> 
> On Sat, Mar 5, 2011 at 2:46 PM, Jean-Baptiste BRIAUD -- Novlog <
> [email protected]> wrote:
> 
>> Hi,
>> 
>> 2 persistent classes :
>> A
>> B extends A.
>> 
>> A have the primary key : id.
>> 
>> I was using fetch plan to include id but with the wrong class.
>> I badly added a fetch plan for B.class, id.
>> 
>> id was null, because it was finally not included in the fetch plan.
>> This is OK but when I build the fetch plan, why not raising an error
>> message with something like :
>> "no attribute id on B".
>> 
>> It took me ages to find my error.
>> After I added the correct fetch plan : A.class, id, everything works fine.
>> 
>> What do you think ?

Reply via email to