Hi,
I have a Struts2 web application. I'm using Spring (for autowiring of
dependency injection) to integrate JPA and Hibernate in the web app.
It's working fine.
Now I need to separate the JPA/Hibernate classes into a
separate jar file (the web app will have this jar file as a dependency).
How
ate: Wed, 27 Aug 2008 20:29:59 +0200
> From: [EMAIL PROTECTED]
> To: user@struts.apache.org
> Subject: Struts2 with JPA/Hibernate using Spring
>
> Hi,
>
> I have a Struts2 web application. I'm using Spring (for autowiring of
> dependency injection) to integrate
you can create a separate project for your pesistence layer and
another project for the view.
you then add the persistence layer project as a dependecy to other projects.
i have here an example although this one didn't use JPA, i just used
Spring's JdbcTemplate for persistence.
http://edwin.quit
[EMAIL PROTECTED]
>Datum: 2008/08/27 21:34
>Till: "Struts Users Mailing List"
>Ärende: RE: Struts2 with JPA/Hibernate using Spring
>
>
>the JPA package structure would look like:
>WEB-INF/classes/package/persistence/*.class
>WEB-INF/classes/META-INF/persistence.xml
>
[EMAIL PROTECTED]
>Datum: 2008/08/27 21:34
>Till: "Struts Users Mailing List"
>Ärende: RE: Struts2 with JPA/Hibernate using Spring
>
>
>the JPA package structure would look like:
>WEB-INF/classes/package/persistence/*.class
>WEB-INF/classes/META-INF/persistence.xml
>
5 matches
Mail list logo