Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Different @SecondaryTable and relationship annotation

 
Moayad Abu Jaber
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greeting,
I'm now read the EJB 3.5 fifth edition.
now i saw the @SecondaryTable, in addition the EJB provide the relationship annotation such as @OneToOne and so on.
I like to know what different in this annotation and when we used each one.

I think we can used the @SecondaryTable when don't need to define the relationships between tables.

the useful need to used the relationships annotation, right ?

please anyone can explain that.

Thanks In Advanced
 
Moayad Abu Jaber
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the different is. we can used the EJB QL in the relational annotation

please confirm this answer

best regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic