I'm using JPA but I'm not sure how to use it for relation between two classes. I need to connect them @OneToMany. I have done this before but forgot. Is there any good tutorial for this or an example that is easy to understand.
By the way this is a Flex application where I'm using BlazeDS for connection between Java and Flex.