users@jpa-spec.java.net

[jpa-spec users] Re: persistence.xml schemaLocation not right?

From: Laird Nelson <ljnelson_at_gmail.com>
Date: Tue, 29 Oct 2013 09:14:32 -0700

On Tue, Oct 29, 2013 at 8:19 AM, guy pelletier <guy.pelletier_at_oracle.com>wrote:

> Try this:
>
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm
> orm_2_0.xsd" <http://java.sun.com/xml/ns/persistence/ormorm_2_0.xsd>
>
> replace the last "/" with a space.
>

Thanks; filed https://java.net/jira/browse/JPA_SPEC-66 with full details.
 Looks like 2.1 corrected the example code by simply removing that extra
"orm/" in the second whitespace-separated token in the xsi:schemaLocation
value present in the schema annotation, so someone must have noticed this
before. It would be nice to get that example code replaced or amended--or
to futz with the website appropriately--since that example code is copied
and pasted all over the place.

Best,
Laird

-- 
http://about.me/lairdnelson