Stripes, Stripersist, JPA, and Maven
I’ve been using the Stripes Framework now for over a year and I think it’s great! It’s a request based web framework that works with very little configuration. I love the way it provides you with what you need without getting in your way! I’d heard some guys in the #stripes irc channel talking about JPA and a Stripes plugin called Stripersist and I decided to give it a try. It’s awesome! The combination of Stripes and JPA alone are great, but with the Stripersist plugin it took all of the hassle out of both the web component and the model component of writing web applications!
Anyway there’s an example application in the Stripersist download directory linked above, but I wanted to give everyone my pom.xml file. If you’re using maven it will help you get all of your dependencies setup quickly. I’ll also link my web.xml and persistence.xml files.
(The Stripersist jar file is not currently in the Maven Repository, but you can manually install it into your local repository with the following command)
mvn install:install-file -DgroupId=org.stripesstuff.stripersist -DartifactId=stripersist -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
I borrowed most of the contents of the following files from either the Stripersist example or theStripes Book Blog. If you haven’t picked up the Stripes Book yet I’d encourage you to do so! It’s a great book!
Here are my configuration files.
Once I get a more complicated example written I’ll try to post the Stripes ActionBean and the Entity Objects.
I hope someone finds this helpful!