JPA and EJB - OneToMany problem?

Given the variable name of emails I would expect a Person.getEmails() given the attribute name, but your JSTL is looking for getEmail().

Given the variable name of emails I would expect a Person.getEmails() given the attribute name, but your JSTL is looking for getEmail(). If that's not the problem, I believe you might need to add a @JoinColumn annotation to your Email class, and add a column to the email table that refers back to the person id. This is how I've done all my ManyToOne annotations.

An example ManyToOne can be found here.

Thank you, @JoinColumn solved it. – marioErr Dec 6 '09 at 5:07.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions