-->
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: How to get column name for the given propertyname of domain
PostPosted: Tue Jul 19, 2005 3:46 pm 
Newbie

Joined: Wed Jun 15, 2005 10:02 am
Posts: 1
Hi,

I am using AuditLogInterceptor to create audit records. The signature of onFlushDirty method looks like this.
Code:
   public boolean onFlushDirty(Object entity, Serializable id,
         Object[] currentState, Object[] previousState,
         String[] propertyNames, Type[] types)



Here I could get all the property names. My question is how to get the correspsonding column names?

Similarly how to get the table name for the corresponding entity?

Thanks.
- Neeraj

_________________
_________________________________
Neeraj Kumar


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 20, 2005 1:34 am 
Senior
Senior

Joined: Thu May 12, 2005 11:40 pm
Posts: 125
Location: Canada
You can fish it out of the Configuration object you used to build the session factory. You may have to keep a reference to it around if you're not doing so already.


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.