jsr338-experts@jpa-spec.java.net

[jsr338-experts] Re: EMF.getProperties() and EM.getProperties()

From: Steve Ebersole <steve.ebersole_at_redhat.com>
Date: Thu, 21 Mar 2013 12:59:28 -0500

On Thu 21 Mar 2013 11:06:07 AM CDT, Linda DeMichiel wrote:
>
> I don't believe it does. This sounds like a bug.

Thanks!

>
> Are you referring to EMF.getProperties? I wouldn't expect these to be
> available from EM.getProperties.
>
> I think it is reasonable that an environment be able to restrict the
> availability of such information.
>
> I think that adding something like the following to the discussion of
> the EMF interface in the spec would
> be reasonable:
> Note that the policies of the installation environment may restrict
> some information from being made
> available through the getProperties method (for example, JDBC user,
> password, URL).

Personally I'd like to filter those out in Hibernate implementation,
but nervous about the TCK continuing to test for that information if
this is not discussed in the spec. So that would be great. Thanks!