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
>
the JPA package structure would look like:
WEB-INF/classes/package/persistence/*.class
WEB-INF/classes/META-INF/persistence.xml
WEB-INF/classes/META-INF/orm.xml (optional)
OR you could jar everything into one jar and place in lib folder
WEB-INF/lib/*.jar
documentation located at
http://java.sun.
4 matches
Mail list logo