How to discover getters and setters on hibernate objects
Posted
by Michael Jones
on Stack Overflow
See other posts from Stack Overflow
or by Michael Jones
Published on 2010-06-01T10:00:58Z
Indexed on
2010/06/01
10:03 UTC
Read the original article
Hit count: 185
hibernate
|reflection
I need to find a way of taking a hibernate object and discovering at runtime all of the getter methods that relate to persistable fields. I'm using annotations in the classes but have previously had difficulties working with them (I ran into a 2 year old bug the java developers still haven't fixed).
Does anyone know how I can do this please, ideally without using annotations? Thanks.
PS - What I'm trying to do here is to update a new object with values from an existing object dynamically.
© Stack Overflow or respective owner