nurkiewicz / spring-data-jdbc-repository

Spring Data JDBC generic DAO implementation
275 stars 151 forks source link

Allow manually injecting JdbcOperations, SqlGenerator and DataSource #5

Closed nurkiewicz closed 10 years ago

nurkiewicz commented 11 years ago

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.

doverfield06 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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

nurkiewicz commented 10 years ago

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

aaccioly commented 10 years ago

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 commented 10 years ago

@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 commented 10 years ago

Done ;)