Skip to content

Instantly share code, notes, and snippets.

@scottmarlow
Created September 9, 2013 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottmarlow/6497927 to your computer and use it in GitHub Desktop.
Save scottmarlow/6497927 to your computer and use it in GitHub Desktop.
Hibernate ORM DefaultDataSourceProvider proposal
<sebersole> 1) define a new spi, lets call it DefaultDataSourceProvider
<sebersole> 2) its a ServiceLoader service, so AS would just have a service file to trigger its loading
<sebersole> 3) in HEM, if no connection info is provided, we'd load that service and get the "DefaultDS"
<sebersole> well most services have a way to circumvent their being applied
<sebersole> we'd need that for ogm
<sebersole> ogm would disable DefaultDataSourceProvider from being used
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment