• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Different @SecondaryTable and relationship annotation

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic