Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
How do I figure out what class method is annotated with @Id?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="laredotornado, post: 4243708"] 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 [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
How do I figure out what class method is annotated with @Id?
Top