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.
Have a look at the Introduction to the Java Persistence API in The Java EE 5 Tutorial and more precisely the section on Multiplicity in Entity Relationships.