openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charlie Mordant <cmorda...@gmail.com>
Subject Re: OpenJPA dependency in osgi bundle with only data model classes
Date Wed, 17 Jun 2015 14:03:21 GMT
Hi,

You can always make a weaving hook that add dynamic-import at runtime (see
https://github.com/ops4j/org.ops4j.pax.jpa/blob/master/pax-jpa/src/main/java/org/ops4j/pax/jpa/impl/JpaWeavingHook.java
for an example)

Regards,

2015-06-17 15:39 GMT+02:00 Mihael Schmidt <mschmidt@sgbs.de>:

> Thanx for the info.
>
> 2015-06-17 15:33 GMT+02:00 Rick Curtis <curtisr7@gmail.com>:
>
> > > is it possible to have no package dependencies to openjpa as I am using
> > standard
> > jpa stuff?
> > Most likely not. The OpenJPA enhancement processing adds a hard
> dependency
> > on classes in org.apache.openjpa.enhance
> >
> > 2015-06-17 5:19 GMT-05:00 Mihael Schmidt <mschmidt@sgbs.de>:
> >
> > > hi,
> > >
> > > i have a question about openjpa. i got an osgi bundle with data models
> > > containing jpa stuff. i have seen that the import-package line contains
> > >
> > >
> > >
> >
> org.apache.openjpa.enhance;version="[2.2,3)",org.apache.openjpa.util;version="[2.2,3)"
> > > .
> > >
> > > is it possible to have no package dependencies to openjpa as I am using
> > > standard jpa stuff?
> > >
> > > pom.xml: http://pastebin.com/wSvT03ca
> > >
> > > Best Regards
> > >
> > > Mihael Schmidt
> > >
> > > --
> > >
> > > Schulz Gebäudeservice GmbH & Co. KG
> > > Dr.-Max-Ilgner-Straße 17
> > > 32339 Espelkamp
> > > Persönlich haftende Gesellschafterin:
> > > Gebäudereinigung Joachim Schulz
> > > Verwaltungsgesellschaft mbH
> > > Telefon: +49 5772 9100 0
> > > Telefax: +49 5772 9100 11
> > > Email: zentrale@sgbs.de
> > > Internet: www.sgbs.de
> > > Geschäftsführer: Joachim und Dirk Schulz, Norbert Kosica
> > > Handelsregister Bad Oeynhausen: HRA 5902, HRB 8591
> > > UST-Id-Nr.: DE 125752702
> > >
> >
> >
> >
> > --
> > *Rick Curtis*
> >
>
>
>
> --
> Mihael Schmidt
> Software und System-Entwicklung
>
> --
>
> Schulz Gebäudeservice GmbH & Co. KG
> Dr.-Max-Ilgner-Straße 17
> 32339 Espelkamp
> Persönlich haftende Gesellschafterin:
> Gebäudereinigung Joachim Schulz
> Verwaltungsgesellschaft mbH
> Telefon: +49 5772 9100 0
> Telefax: +49 5772 9100 11
> Email: zentrale@sgbs.de
> Internet: www.sgbs.de
> Geschäftsführer: Joachim und Dirk Schulz, Norbert Kosica
> Handelsregister Bad Oeynhausen: HRA 5902, HRB 8591
> UST-Id-Nr.: DE 125752702
>



-- 
Charlie Mordant

Full OSGI/EE stack made with Karaf:
https://github.com/OsgiliathEnterprise/net.osgiliath.parent

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message