Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #19551

Re: How to store and represent 1 objects relationship to other objects

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From Gene Wirchenko <genew@ocis.net>
Newsgroups comp.lang.java.programmer
Subject Re: How to store and represent 1 objects relationship to other objects
Date Sun, 28 Oct 2012 20:47:40 -0700
Organization A noiseless patient Spider
Lines 15
Message-ID <p1vr88dc7f5g1roonesmrvhvnrjlpgdchj@4ax.com> (permalink)
References <23786bb4-22cc-4711-a172-8e5c7ce5375e@googlegroups.com> <k6etkf$ufg$1@dont-email.me> <7ae71496-be19-497a-b856-7333d3b4adf7@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Injection-Info mx04.eternal-september.org; posting-host="c0a6a1dc41fc92eb7000e57afbd16211"; logging-data="23332"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9dJv9M20euraPchvSivNfHhiZeDY7Jo8="
X-Newsreader Forte Agent 4.2/32.1118
Cancel-Lock sha1:optWNqTEdjlx8E2PA1NwCruFWeA=
Xref csiph.com comp.lang.java.programmer:19551

Show key headers only | View raw


On Fri, 26 Oct 2012 14:51:49 -0700 (PDT), Lew <lewbloch@gmail.com>
wrote:

[snip]

>If you further wish to guarantee that no 'LineItem' appears more than once, you'd likely use a 'Set'
>instead of a 'List'. Unfortunately the JPA spec doesn't seem to allow 'SortedSet', but it seems that 
>the '@OrderBy' annotation hacks around that limitation.

     Sets (in the mathematical sense) do not have order.  If you want
to have an order, use a list.

Sincerely,

Gene Wirchenko

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to store and represent 1 objects relationship to other objects pat.trainor@gmail.com - 2012-10-26 11:40 -0700
  Re: How to store and represent 1 objects relationship to other objects Lew <lewbloch@gmail.com> - 2012-10-26 12:23 -0700
  Re: How to store and represent 1 objects relationship to other objects Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-10-26 22:59 +0200
    Re: How to store and represent 1 objects relationship to other objects Lew <lewbloch@gmail.com> - 2012-10-26 14:51 -0700
      Re: How to store and represent 1 objects relationship to other objects Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-10-27 00:48 +0200
        Re: How to store and represent 1 objects relationship to other objects Lew <lewbloch@gmail.com> - 2012-10-26 16:07 -0700
      Re: How to store and represent 1 objects relationship to other objects Gene Wirchenko <genew@ocis.net> - 2012-10-28 20:47 -0700
        Re: How to store and represent 1 objects relationship to other objects David Lamb <dalamb@cs.queensu.ca> - 2012-10-29 10:12 -0400

csiph-web