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


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

Re: PUT DATA

X-Received by 10.224.72.199 with SMTP id n7mr4277435qaj.5.1360372012894; Fri, 08 Feb 2013 17:06:52 -0800 (PST)
X-Received by 10.49.24.14 with SMTP id q14mr605041qef.17.1360372012874; Fri, 08 Feb 2013 17:06:52 -0800 (PST)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!p13no3757385qai.0!news-out.google.com!k2ni21154qap.0!nntp.google.com!p13no3757377qai.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.programmer
Date Fri, 8 Feb 2013 17:06:52 -0800 (PST)
In-Reply-To <51159db8$0$288$14726298@news.sunsite.dk>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T
NNTP-Posting-Host 69.28.149.29
References <i4uah8h7g0ft1r1b3ljsuinat0luq209p8@4ax.com> <51157d6d$0$291$14726298@news.sunsite.dk> <54cfb631-0b26-4e82-a58d-c9d094f4329e@googlegroups.com> <511595c5$0$283$14726298@news.sunsite.dk> <nZgRs.218654$pV4.191473@newsfe21.iad> <51159db8$0$288$14726298@news.sunsite.dk>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <de60670c-5ed6-4bae-a79a-dea67e075129@googlegroups.com> (permalink)
Subject Re: PUT DATA
From Lew <lewbloch@gmail.com>
Injection-Date Sat, 09 Feb 2013 01:06:52 +0000
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Xref csiph.com comp.lang.java.programmer:22226

Show key headers only | View raw


Arne Vajhøj wrote:
> Maybe I am the only one in the known universe that don't know.
> 
> But let us say we have:
> 
> X a = new X(aa);
> X b = new X(bb);
> 
> test(a,b);
> 
> void test(X a,X b) {
> 
> }
> 
> How should the annotation look like, how should it be put on and
> how do I get it in test?

I don't understand your question "How do I get it in test?"

> I know how to put an annotation on the type X that I can get in
> test. But that is the same for both a and b. Roedy needs a
> different annotation (value).
>
> I don't think I have ever seen that done with instances.

Take a look at JPA:

@Column(name="SURNAME")
private String lastName;

@Column(name="GIVENNAME")
private String firstName;

Is that not annotating a field? And annotations can annotate a local variable, too.

It's not annotating 'String'.

Is that not what you wanted?

-- 
Lew

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


Thread

PUT DATA Roedy Green <see_website@mindprod.com.invalid> - 2013-02-08 14:21 -0800
  Re: PUT DATA Arne Vajhøj <arne@vajhoej.dk> - 2013-02-08 17:34 -0500
    Re: PUT DATA Lew <lewbloch@gmail.com> - 2013-02-08 16:13 -0800
      Re: PUT DATA Arne Vajhøj <arne@vajhoej.dk> - 2013-02-08 19:18 -0500
        Re: PUT DATA Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-02-08 20:44 -0400
          Re: PUT DATA Arne Vajhøj <arne@vajhoej.dk> - 2013-02-08 19:52 -0500
            Re: PUT DATA Lew <lewbloch@gmail.com> - 2013-02-08 17:06 -0800
              Re: PUT DATA Lew <lewbloch@gmail.com> - 2013-02-08 17:08 -0800
              Re: PUT DATA Arne Vajhøj <arne@vajhoej.dk> - 2013-02-08 20:09 -0500
                Re: PUT DATA Lew <lewbloch@gmail.com> - 2013-02-08 17:16 -0800
                Re: PUT DATA Arne Vajhøj <arne@vajhoej.dk> - 2013-02-08 20:36 -0500
                Re: PUT DATA Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-02-09 08:14 -0400
  Re: PUT DATA Lew <lewbloch@gmail.com> - 2013-02-08 16:10 -0800
    Re: PUT DATA Roedy Green <see_website@mindprod.com.invalid> - 2013-02-09 09:54 -0800
  Re: PUT DATA Roedy Green <see_website@mindprod.com.invalid> - 2013-02-09 15:49 -0800
    Re: PUT DATA Arne Vajhøj <arne@vajhoej.dk> - 2013-02-09 19:21 -0500

csiph-web