Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!