2012-04-02

The Persistence Layer with Spring 3 and JPA | baeldung

The Persistence Layer with Spring 3 and JPA | baeldung:

I've been banging around with Spring 3 annotations and JPA the past two days. Between a couple of quick tutorials showing the magic annotations and the Spring Reference Manual explaining the details I ended up in no man's land of "So how does it get from here to there?" This article makes the bridge from XML to annotation based configuration clear enough so that even an clod like myself can get it.

'via Blog this'

2012-03-30

Lost my Tomcat Server in Indigo

I managed to break my external Tomcat server in Eclipse. When I tried to delete it from servers, fine. When I tried to add it back in, the server type was no longer available. This fixed it: Cannot create a server using the selected type – Eclipse tomcat | My Technical Notes:

'via Blog this'

2012-03-27

A Quick JPA Refresher

JPA Relationship Links

Getting back on the Java Enterprise wagon after six months of doing Swing applications. Man Spring has improved since 2.0. Fired up SpringSource STS and launched the Spring Project from Template, generated a JPA project and started coding. The test framework made it simple, however, as the relationships starting coming together I struggled. I used this stuff everyday for over a year, so a quick refresher was in order. Sorted through the top two pages in Google and came up with these:

So you haven't touched JPA in a few months. A quick and dirty refresher is Essential object-relational mapping in JPA.

A good minimalist set of examples on the One to Many and Many to Many relationships.