You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Li, Ping" <pl...@spss.com> on 2009/02/24 10:46:20 UTC

Is it a defect?

Hi:

 

I read the code in "bpel-store\src\main\java\org\apache\ode\store\jpa\DbConfStoreConnectionFactory.java"

In the constructor, it set a DataSource object in to a Map. But according to the persistence_1_0.xsd (http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd),

The Map just can contain String object only.

 

Does anyone can confirm that?

 

 

 

pli
Software Engineer
SPSS Inc.
http://www.spss.com/

 


Re: Is it a defect?

Posted by Matthieu Riou <ma...@gmail.com>.
On Tue, Feb 24, 2009 at 1:46 AM, Li, Ping <pl...@spss.com> wrote:

> Hi:
>
>
>
> I read the code in
> "bpel-store\src\main\java\org\apache\ode\store\jpa\DbConfStoreConnectionFactory.java"
>
> In the constructor, it set a DataSource object in to a Map. But according
> to the persistence_1_0.xsd (
> http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd),
>
> The Map just can contain String object only.
>
>
>
> Does anyone can confirm that?
>

That's the spec yes but OpenJPA allows any object. And, at least when this
was implemented, it was the only way to provide a DataSource to OpenJPA.

Matthieu


>
>
>
>
>
>
>
> pli
> Software Engineer
> SPSS Inc.
> http://www.spss.com/
>
>
>
>