This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
As for me, the inly possible answer here is C. All other answers violate rules described by JPA specification. Answer B is also not correct because Entity may be disposed anywhere in a certain class hierarchy.
Benoît de Chateauvieux
Joined: Aug 10, 2007
Thanks for your answer. I think that "b)Entity class must be declared as top level class" means that an entity can't be a inner-class. So, for me, B is right too.
Joined: Feb 09, 2008
Oh, sorry. You're right.
It was my slip-up. Of course B is correct too. I misunderstood the clause "top level class".