Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #8213
| From | laredotornado <laredotornado@zipmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | How do I figure out what class method is annotated with @Id? |
| Date | 2011-09-22 11:42 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <46e27630-0633-49fb-975b-a4e78d787655@v7g2000yqk.googlegroups.com> (permalink) |
Hi,
I'm using Java 6 with the latest version of Hibernate. I have several
POJOs, all of which have exactly one method annotated with
"javax.persistence.Id". For example, one class has ...
@Id
@Column(name="ID")
public Integer getID() {
return ID;
}
Given a java.lang.Class, how do I figure out what method is annotated
with the "@Id" annotation? Thanks, - Dave
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar
How do I figure out what class method is annotated with @Id? laredotornado <laredotornado@zipmail.com> - 2011-09-22 11:42 -0700
Re: How do I figure out what class method is annotated with @Id? markspace <-@.> - 2011-09-22 11:49 -0700
Re: How do I figure out what class method is annotated with @Id? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-09-22 14:54 -0700
Re: How do I figure out what class method is annotated with @Id? markspace <-@.> - 2011-09-22 15:30 -0700
Re: How do I figure out what class method is annotated with @Id? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-09-22 16:11 -0700
csiph-web