Hi Brennan, 
    If you want to reference a list of objects from multiple entities,
    then I believe the best approach is to use OneToMany/ManyToOne
    mappings. 
    e.g. 
    A 1-* B 
    B *-1 A 
    C 1-* B 
    B *-1 C 
     
    Best regards, 
    Reinhard 
     
    On 14.11.2011 18:00, eclipselink-users-request@xxxxxxxxxxx wrote:
    
      Send eclipselink-users mailing list submissions to
	eclipselink-users@xxxxxxxxxxx
To subscribe or unsubscribe via the World Wide Web, visit
	https://dev.eclipse.org/mailman/listinfo/eclipselink-users
or, via email, send a message with subject or body 'help' to
	eclipselink-users-request@xxxxxxxxxxx
You can reach the person managing the list at
	eclipselink-users-owner@xxxxxxxxxxx
When replying, please edit your Subject line so it is more specific
than "Re: Contents of eclipselink-users digest..."
Today's Topics:
   1. Using a custom collection in EclipseLink (Brennan Spies)
----------------------------------------------------------------------
Message: 1
Date: Sun, 13 Nov 2011 21:34:20 -0800
From: Brennan Spies <brennanspies@xxxxxxxxx>
To: eclipselink-users@xxxxxxxxxxx
Subject: [eclipselink-users] Using a custom collection in EclipseLink
Message-ID:
	<CAJS5+Yp9iR=R7VYOCFR6KRGAhHnJYeuQte0o==WP609NAYFiZQ@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"
Hi all,
I'm a bit new to EclipseLink, and am struggling to figure out a way to use
a custom collection: a custom Stack interface with a standard
implementation, ArrayStack, that simply wraps a java.util.List. As a first
go, I've specified the ArrayStack as being @Embeddable, and mapped the list
directly using @ElementCollection. But EclipseLink needs a "targetClass" to
do that, but I don't want to specify it in the @Embeddable directly since I
am using it in more than one entity type.
Is there an EclipseLink-specific way to override the "targetClass" on this
List, or a way to do this using a DescriptorCustomizer?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/eclipselink-users/attachments/20111113/fe29befc/attachment.htm>
------------------------------
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
End of eclipselink-users Digest, Vol 51, Issue 45
*************************************************
 
     
     
    --  
       
      REINHARD GIRSTENBREI | Senior Principal Technical
        Support Engineer 
        Phone: +49 89 1430 2318
        | Fax: +49 89 1430 2318
        | Mobile: +49 177 594 1318
        | VOIP: +49 89 1430 2318
         
        Oracle Oracle Customer Services 
         
        ORACLE Deutschland B.V. & Co. KG | Riesstr. 25 | 80992
        Munich
      
      ORACLE Deutschland B.V. & Co. KG 
        Hauptverwaltung: Riesstr. 25, D-80992 München 
        Registergericht: Amtsgericht München, HRA 95603 
        Geschäftsführer: Jürgen Kunz 
         
        Komplementärin: ORACLE Deutschland Verwaltung B.V. 
        Hertogswetering 163/167, 3543 AS Utrecht, Niederlande 
        Handelsregister der Handelskammer Midden-Niederlande, Nr.
        30143697 
        Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher 
      
      
       
      Oracle is committed to developing practices and
        products that help protect the environment
      
     
  
 |