persistence@glassfish.java.net

[Fwd: [Issue 459] TopLink does not ignore white spaces around string values in provider name in persistence.xml]

From: Sanjeeb Kumar Sahoo <Sanjeeb.Sahoo_at_Sun.COM>
Date: Wed, 22 Mar 2006 22:22:38 +0530

Mike, Linda,

This one for you.

Thanks,
Sahoo

attached mail follows:



https://glassfish.dev.java.net/issues/show_bug.cgi?id=459






------- Additional comments from tware_at_dev.java.net Wed Mar 22 16:50:55 +0000 2006 -------
Isn't this something that should be fixed in the schema.

Currently it is defined as a String (which allows leading and trailing spaces)

<xsd:element name="provider" type="xsd:string"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Provider class that supplies EntityManagers for this
persistence unit.
</xsd:documentation>
</xsd:annotation>
</xsd:element>

A token might be a better choice.

This could be changed in the core, but I would consider it a lower priority
than the other P3 bugs.