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

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

Back to the top