Spring JPA data as a Spring independent project

Does anyone know of any Java frameworks that follow a repository approach with automatic implementation of query methods (e.g. findByNameAndLastName(…)), but are not tied to Spring, but only to pure JPA. Such a function also exists in GORM. I would like to see if there is any project that can be used in Guice or a clean JavaEE environment without bringing Spring as a dependency.

+5
source share
3 answers

(Disclaimer: I am the author of Spring JPA data)

There is a CDI Query Module , which is very similar to what Spring Data JPA does. There is also a DeltaSpike module .

, Spring Data JPA CDI, - CDI beans Spring. API-, - , :

EntityManager em = // … obtain EntityManager
JpaRepositoryFactory factory = new JpaRepositoryFactory(em);
UserRepository repository = factory.getRepository(UserRepository.class);

, - , Spring , , Commons . Spring, , , .

, Spring DI, , CDI Spring Data JPA. - Spring ( - ), .

+14

Tomato github!

Spring JPA, , . 98% , .

https://rpbarbati.imtqy.com/Tomato .

If you need free, fully functional dynamic forms and / or tables for any Tomato object or hierarchy that can also be easily customized, try the accompanying angular project ...

https://rpbarbati.imtqy.com/Basil

Both are ongoing, supported projects.

Try it yourself or contact the author at rodney.barbati@gmail.com with questions.

0
source

All Articles