| 
					
						 Thanks, you understand my question, even though it was quite unclear I agree :)
 
 To be precise, what I want is not the backing field, but the property, isnt Hibernate referencing the property name rather than the backing field in HQL?
 
 So what I basically want is a function that gives me the answer to this question:
 "what is the path of the property that is represented by this getter?"
 
 By doing:
 
 Person person = new Person();
 String thePath = theFunctionIwant( person.getAge() )
 
 thePath would contain "Person.age".  (I know it is impossible this way, since the getAge() would return an int or something, so what I really need is a way to reference that this is a property...)
 
 Then I could construct my HQL without having to duplicate the information that age is a property of Person through some private dictionary.
 
 Or am I missing out on some basic concept in Hibernate here? If not, I would believe that other people would be bothered by the need for duplicating information as well?
 
 Thanks again! 
					
  
						
					 |