-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: dynamically create a getter by physical column name
PostPosted: Thu Jul 05, 2007 1:48 pm 
Beginner
Beginner

Joined: Thu Jan 20, 2005 1:45 pm
Posts: 49
Hi all
I really do not know how to get credits for using other forum such as hibernae user.
Anyway i wonder if exists a way for dynamically invoke a getter method of a pojo knowing just the physical column name.
Example:
i have a table with a column named NAMED_COLUMN.Of course if NAME_COLUMN is a simple property of my POJO i can call with reflection
the method "getNameColumn".
The problem is where NAME_COLUMN is inside a composite pojo element such as a manyToOne or a oneToMany component.I need a way for navigate all the pojo tree and find out the exact getter path for reaching that property.
Hope to be clear!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 11, 2007 12:24 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
you get credit if you help people and they think your answer helped them.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.