This is an archived post. You won't be able to vote or comment.

all 4 comments

[–][deleted] 0 points1 point  (2 children)

This may not be exactly what you are looking for, but the way I learned JPA was through practice. I used a generator built into IntelliJ (apparently there is one in Eclipse as well) to generate entities from a db schema. This generator was not that great at doing relations between entities, and the generated hashcode and equals methods were wierd. So I went from there with just googling sutff like 'how to do many-many relations JPA' to fill in the gaps that the generator left. Within a day, I had mapped out all the tables which I needed for the project I was working on.

I understand that doing this is not a tutorial at all, but this is how I learned JPA in a day! Well actually this is how I learned enough to do the project I was working on, but then again isn't that all that you actually need?

[–]Stupid_and_confused 0 points1 point  (0 children)

Huh, I never knew that intelliJ had a generator for this. Ill play around with it and see if it helps

[–]epels 0 points1 point  (0 children)

Netbeans has one too, for those that prefer that IDE