• 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 ...
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Q re on-to-one Relationships

Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
Any chance someone can answer my q in topic?
I include the key info for convenience:
I am currently needing to put together a one-to-one relationship and need to
understand the process if both beans need to have references to each other
as they are created. I am imagining it would go something like this (the
create method of one ejb takes enough params to create both, the create
method of the second takes a reference to the first and uses a combination
of create and postCreate to set up the persistent relationship):
bean 1 (name):

(of course CreateExceptions etc ...)

Will this work? Is this the way to do it? Is there a better way?
Any thoughts?
Drove my Chevy to the levee but the levee was dry. A wrung this tiny ad and it was still dry.
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic