openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dain Sundstrom <d...@iq80.com>
Subject Re: Do mapped superclasses work at all in OpenJPA?
Date Tue, 13 Feb 2007 19:43:32 GMT
On Feb 13, 2007, at 11:19 AM, Patrick Linskey wrote:

>>> I also prefer ignoring it consistently. But considering that
>>> enhancement fails, this seems like more than a WARN. More like a
>>> SEVERE. And if you get a SEVERE during enhancement, should we
>>> really put the EMF into service at all? Issue #2?
>>
>> I agree.  If we get an enhancement error, I think we should throw an
>> exception from the EMF consturctor.  The problem is that enhancement
>> seems to happen only as beans are used (loaded into memory), so the
>> EMF doesn't know that enhancement won't work.
>
> I think that if the classes are listed in the persistence.xml, it will
> fail eagerly. Probably setting exclude-unlisted-classes to true and
> referencing an orm.xml will also cause eager failure.

I have exclude-unlisted-classes false but I am using an explicitly  
named mapping file listed in the persistence unit declaration.

>>>> Secondly, are we parsing the XML file multiple times?  The only
>>>> way for the first warning to be fired is if OpenJPA has read my
>>>> entity mappings, but the exception that is thrown later is a SAX
>>>> exception which implies that OpenJPA is reading the file again.
>>>
>>> Sounds like an inefficient startup algorithm that we should fix.
>>> Issue #3?
>
> We might be parsing it multiple times, but for different reasons and
> with different parsers. Are you listing entities in an orm.xml and  
> then
> pointing at that orm.xml / relying on the default location?

Nope, I have explicitly listed entity mapping file.

-dain

Mime
View raw message