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="markspace, post: 4243709"] I think my first question is "Why do you want to do that?" It sounds like a very very bad idea. You shouldn't be messing around with those entities at all, let the persistence layer handle that. Your access to "id" should come from some higher level of business logic. If you must (not recommending): <[URL]http://download.oracle.com/javase/tutorial/reflect/index.html[/URL]> <[URL]http://download.oracle.com/javase/6/docs/api/java/lang/Class.html#getAnnotations%28%29[/URL]> [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
How do I figure out what class method is annotated with @Id?
Top