Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » J2EE Pattern »

Re: associations in classes

Sang Shin

2003-07-29

Replies:

Pradeep Kumar wrote:

> I second Sanjiv, here. Can someone please send/point to examples.
>
> -----Original Message-----
> From:  Sanjiv Kapila [mailto:skapila@(protected)]
> Sent:  Monday, July 28, 2003 4:48 PM
> To:   J2EEPATTERNS-INTEREST@(protected)
> Subject:         associations in classes
>
> Hi,
> Just to confirm my understanding, can any one send me some sample code for
> each of association types for classes in java :
> 1. aggregation
> 2. Composition
> 3. generalization
>

"Mastering Enterprise JavaBeans 2nd Edition" written by Ed Roman
(PDF file of this book is freely available from
http://www.theserverside.com//books/masteringEJB/index.jsp)
has an excellent chapter (Chapter 11: BMP and CMP
Relationships) on Relationship on Entity beans including
aggregation and composition (page 350). And explanation on
these should apply to generic Java classes.

--
----------------------------------------------------------------------
        http://www.javapassion.com/SangSchedule.html#Bio
          http://www.javapassion.com/SangSchedule.html
            (Life is worth living... with Passion!)
----------------------------------------------------------------------
        Sun Tech Days         |     SunNetwork 2003
  Worldwide Developer Conference   |   Conference and Pavilion
  -Push Your Development Further-  |   Why not get connected?
                         |
      Seattle, Washington       |  Moscone Center, San Francisco
      September 4-5, 2003       |  September 16-18, 2003
                         |
To register:                 | To register:
http://sun.com/developers/techdays   | http://sun.com/sunnetwork
_______________________________________________________________________

====================================================================
Community Web Site (Core J2EE Patterns Catalog - Online Version):
http://java.sun.com/blueprints/corej2eepatterns
Getting Started (Beta Version):
http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/
Get the book:
http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20
List Archive:
http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing:
email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.