Return-Path: X-Original-To: apmail-db-jdo-user-archive@www.apache.org Delivered-To: apmail-db-jdo-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 104BC91F6 for ; Sat, 26 May 2012 12:52:01 +0000 (UTC) Received: (qmail 19692 invoked by uid 500); 26 May 2012 12:52:00 -0000 Mailing-List: contact jdo-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-user@db.apache.org Delivered-To: mailing list jdo-user@db.apache.org Received: (qmail 19677 invoked by uid 99); 26 May 2012 12:52:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 May 2012 12:52:00 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.220.172] (HELO mail-vc0-f172.google.com) (209.85.220.172) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 May 2012 12:51:54 +0000 Received: by vcqp1 with SMTP id p1so1045550vcq.31 for ; Sat, 26 May 2012 05:51:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=s0XkJDuLXk19qcvpssx6DOg7WFTDkNXrw2G/zX8kKC0=; b=ERaHb+zVrpActYDGPaDHL+zfAxw68duDojpZXeESESOOw9YAJgpUoA5GqJ8KZmyfkh nRN+wP9pg3FMWQnc1PH5XgPFtHNMhEEkQiqejfTNtvJeduON/h27aM3U5Y6FYHo/JUGi aYgvkUCEAP41dXQJTG9oIGMFQTpEoETYMlcSu9G6sR6LVdpkKqjkEgs4EklwBSU1mFag aPXJlD3BmEJw6WRSoWKprW3tsN/0qVqdc2rpUnRVmJpf6WXwmYo637+mE0TGNDGq2Vmq 1ulq5Yea21CsUlj9Y9/S4CFllxosQqrsLw3+DwOSrliw4CiH5ZX/wihExrv26VPqSP+R A7tQ== Received: by 10.52.100.67 with SMTP id ew3mr2174188vdb.36.1338036693331; Sat, 26 May 2012 05:51:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.30.132 with HTTP; Sat, 26 May 2012 05:51:12 -0700 (PDT) In-Reply-To: <1337991932.62448.YahooMailNeo@web161006.mail.bf1.yahoo.com> References: <1337991932.62448.YahooMailNeo@web161006.mail.bf1.yahoo.com> From: Matthew Adams Date: Sat, 26 May 2012 07:51:12 -0500 Message-ID: Subject: Re: OR mapping for JDO2.0 To: jdo-user@db.apache.org, Gang Liu Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQlmVLDLDGpe5GY6LFaJN3oNnZbjg6ITjDbCrsVmu86N8HVCJlNbF/NQajvxYl/mupC2KNJj JDO doesn't support collections of collections, maps of collections, etc. An easy workaround is to define a class that contains a List, like this: public class StringList { List list; // ctors, List delegate methods, etc } Then your #1 becomes List. For #2, you could define public class StringListList { List list; // ctors, List delegate methods, etc } and then use Map. -matthew On Fri, May 25, 2012 at 7:25 PM, Gang Liu wrote: > Hi, > > I have 2 use cases and hope someone can give some ideas: > > #1 how to write mapping file if a member variable in a class is List> > #2. how to write mapping file if a member variable in a class is Map>,String> > > thanks > > Tim -- @matthewadams12 mailto:matthew@matthewadams.me skype:matthewadams12 yahoo:matthewadams aol:matthewadams12 google-talk:matthewadams12@gmail.com msn:matthew@matthewadams.me http://matthewadams.me http://www.linkedin.com/in/matthewadams