• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Q re on-to-one Relationships  RSS feed

Posts: 12
  • Mark post as helpful
  • send pies
  • 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?
You got style baby! More than this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!