Thread:
 small code comment 
 stewart.cambridge   22 Mar 2006, 07:35 
 Re: small code comment 
 raghavender   29 May 2006, 07:05 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: raghavender (29 May 2006, 07:05) Replies: 0, Views: 24603
Subject: Re: small code comment
POST QUESTIONS ON THE FORUM! COMMENTS HERE SHOULD ADD VALUE TO THE PAGE!
On 22 Mar 2006 07:35, stewart.cambridge wrote:

>Where you do this:

>            Class objectClass = obj.getClass();
>            String className = objectClass.getName();

>            // Just get the class name without the package structure
>            String[] tokens = className.split("\\.");
>            int lastToken = tokens.length - 1;
>            className = tokens[lastToken];

>You just do this:

>            Class objectClass = obj.getClass();
>            String className = objectClass.getSimpleName();

Hi Can you please tell me how can we create our own components and set 
them to the properties and check them while auditing 

just like in the above example code 

if(interfaces[i].getName().equals
("com.mycompany.model.audit.Component"))

How can we write "com.mycompany.model.audit.Component" class and set it 
to the property.

My requirement is to audit  to audit only the selective fields.

Thanks in advance
Raghavender
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]