OK,
Unless I hear objections, I'm planning to add
public <T> T unwrap(Class<T> cls)
methods to EntityManagerFactory and Cache. They would
mirror what we currently have on EntityManager and Query.
-Linda
On 6/22/2011 7:34 AM, Emmanuel Bernard wrote:
>
> On 22 juin 2011, at 02:07, Linda DeMichiel wrote:
>
>> This is a minor item that is a holdover from JPA 2.0.
>>
>> I had on my to-do list the request to add additional unwrap
>> methods, specifically one to support unwrap of the Cache object.
>> Any others? On EntityManagerFactory perhaps?
>
> Yes, for me an unwrap method on EntityManagerFactory is evne more important / useful than on Cache. I'm neutral on a Cache#unwrap API.
>
>