karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Carman <ja...@carmanconsulting.com>
Subject Re: JPA Usage: Strategy for using Hibernate + Postgresql
Date Fri, 26 Oct 2012 10:59:25 GMT
OpenJPA is much more OSGi-friendly.  You might give that a go.  We've
switched and never looked back.

On Fri, Oct 26, 2012 at 6:48 AM, dealbitte <anand.bochum@gmail.com> wrote:
> Hi
>
> I am trying to set up Hibernate and Postgresql in conjunction with Karaf. I
> have a maven project (archetype: osgi)  that depends on Hibernate and
> Postgresql and I want to install this project in karaf. I would like to know
> if there are design patterns to set up a JPA provider (like Hibernate) along
> with a database (like Postgres).
>
> I installed hibernate dependencies, via feature file shown below
>
>   <feature name="hibernate">
>         <bundle>wrap:mvn:org.hibernate/hibernate-core/4.1.7.Final</bundle>
>
> <bundle>wrap:mvn:org.hibernate/hibernate-entitymanager/4.1.7.Final</bundle>
>
> <bundle>wrap:mvn:org.hibernate.javax.persistence/hibernate-jpa-2.0-api/1.0.1.Final</bundle>
>
> <bundle>wrap:mvn:org.hibernate.common/hibernate-commons-annotations/4.0.1.Final</bundle>
>         <bundle>wrap:mvn:org.jboss.logging/jboss-logging/3.1.0.GA</bundle>
>   </feature>
>
> When I tried to install my bundle, it complains about missing
> 'hibernate.cfg.xml' even though this is available inside the bundle.
>
> I am looking for some examples, tutorials that can help to understand the
> usage of JPA provider with database. I am not restricted to Hibernate and
> Postgres.
>
> regards,
> Rakesh
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/JPA-Usage-Strategy-for-using-Hibernate-Postgresql-tp4026586.html
> Sent from the Karaf - User mailing list archive at Nabble.com.

Mime
View raw message