Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] SessionCustomizer to modify/detect database platform: impossible

Regrettably, I don't see the method you're talking about:

http://www.eclipse.org/eclipselink/api/2.3/org/eclipse/persistence/jpa/metadata/MetadataSourceAdapter.html

Perhaps you're talking about the same class in 2.4, which does indeed inherit that method:

http://www.eclipse.org/eclipselink/api/2.4/org/eclipse/persistence/jpa/metadata/MetadataSourceAdapter.html

Thanks,
Laird


On Thu, Feb 21, 2013 at 9:41 AM, Laird Nelson <ljnelson@xxxxxxxxx> wrote:
On Thu, Feb 21, 2013 at 6:53 AM, Tom Ware <tom.ware@xxxxxxxxxx> wrote:
A third workaround suggested by a colleague

- Use the eclipselink.metadata-source persistence unit property to point to a custom class that extends org.eclipse.persistence.jpa.metadata.MetadataSourceAdapter

- In your class implement

  public Map<String, Object> getPropertyOverrides(Map<String, Object> properties, ClassLoader classLoader, SessionLog log)

and in the case where you need to specify the new platform, add the eclispelink.target-database property to that list.

Oh, this has some promise.  Thanks.

Best,
Laird

--
http://about.me/lairdnelson



--
http://about.me/lairdnelson

Back to the top