L
laredotornado
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
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