Skip to content
This repository has been archived by the owner on Jan 17, 2019. It is now read-only.

Allow manually injecting JdbcOperations, SqlGenerator and DataSource #5

Closed
nurkiewicz opened this issue Jun 4, 2013 · 8 comments
Closed
Assignees

Comments

@nurkiewicz
Copy link
Owner

Currently JdbcRepository can only be used within Spring container. Allow manually creating it by supplying custom JdbcOperations, SqlGenerator and DataSource.

Make sure it can be created outside the container without BeanFactory being available.

@ghost ghost assigned nurkiewicz Jun 4, 2013
nurkiewicz added a commit that referenced this issue Dec 26, 2013
@doverfield06
Copy link

Is there any plans to release a new version with these changes?

Also, do you have any plans to get this on maven central?

@nurkiewicz
Copy link
Owner Author

I'll tag new version in couple of days. With regards to publishing to maven central - I never done this before so I will have to investigate a little bit. Please open another ticket so I can see how many people are interested in Maven Central availability.

@doverfield06
Copy link

Thanks.

I’ve been told that it’s easier to publish to BinTray. If you publish to BinTray, it’s suppose to be simple to request addition to the JCenter (which is like Maven Central, but managed by JFrog). BinTray also provides a simplified way to publish to Maven Central.

@sheenobu
Copy link
Collaborator

sheenobu commented Mar 7, 2014

Never heard of BinTray, looks interesting. +1 on the Maven Central or another repo.

@nurkiewicz
Copy link
Owner Author

I released version 0.3.1 and I'm working on Maven Central integration.

@aaccioly
Copy link

Hello @nurkiewicz . Thanks for the wonderful software. Could you please write some instructions about how to run it outside of the spring container?
Maybe a Standalone usage example or CDI Integration sections like in Spring Data JPA Documentation.

I would like to write a CDI Producer for repositories and and consume it in EJBs (using standard Java EE Declarative Transactions. Is it possible?

@nurkiewicz
Copy link
Owner Author

@aaccioly Thank you for your interest in this project. I have never tried it, but I'll do my best to experiment and document how this library can be started standalone. I don't think it should be an issue. I don't know CDI, so later on, if it works for you, I would be glad to include CDI producer example as well.

BTW feel free to open a separate task so that you can track progress more easily.

@aaccioly
Copy link

Done ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants