OsgiliathEnterprise / net.osgiliath.parent

Osgiliath OSGI-EE Framework
http://osgiliathenterprise.github.io/projects.documentations/products/osgiliath-enterprise-framework/
15 stars 7 forks source link

Make a JPA module with deltaspike-jpa, deltaspike-data, pax-jpa #46

Closed Tcharl closed 8 years ago

Tcharl commented 9 years ago

As the migration to pax-jdbc has been done, it could be nice to replace (or add a new) the blueprint/spring-data based jpa module by a deltaspike-jpa/deltaspike-data/pax-jpa one

garyhodgson commented 9 years ago

I'd certainly be interested in seeing this implemented.

I have made a start trying to use deltaspike repository with pax-cdi, but so far haven't been able to successfully inject the repository. (I get a "WELD-001408: Unsatisfied dependencies ..." error at bundle start)

Tcharl commented 9 years ago

I will take a look at this, making an itest in the 'features' module, I'll also make a branch for this issue (maybe we must do some more wrappers).

Tcharl commented 9 years ago

I made a simple test here: https://github.com/OsgiliathEnterprise/net.osgiliath.parent/tree/master/net.osgiliath.framework/net.osgiliath.features.karaf-features/net.osgiliath.features.karaf-features.itests/net.osgiliath.features.karaf-features.itests.jpa.cdi.daos

Unfortunately it's failing with a NPE (so the junit test has been marked @Ignore ). Just have to investigate a little bit on this (if you have time, or when I'll have).

Tcharl commented 9 years ago

A simpler test (without Deltaspike) spawned the same error: https://github.com/OsgiliathEnterprise/net.osgiliath.parent/tree/master/net.osgiliath.framework/net.osgiliath.features.karaf-features/net.osgiliath.features.karaf-features.itests/net.osgiliath.features.karaf-features.itests.jpa.pax

Tcharl commented 8 years ago

no more needed: replaced by a combination of blueprint maven plugin and Aries-jpa 2