This content has been marked as final.
Show 5 replies
-
1. Re: How to change or customize the field names in the Audited tables
hope2010 Mar 7, 2010 4:12 PM (in response to hope2010)The reason for the question: we are using a generic class to report on all the Audited entities.
for (Field f : entityObject.getClass().getDeclaredFields()) {
//if Audited annotation does not exist.. then continue..
System.out.println(String fieldName = f.getName());
} -
2. Re: How to change or customize the field names in the Audited tables
adamw Mar 8, 2010 2:17 AM (in response to hope2010)Not really, but I don't think that it should be part of Envers.
Though you could easily add your own @AuditedName annotation and read it in your loop
Adam
-
3. Re: How to change or customize the field names in the Audited tables
hope2010 Mar 8, 2010 9:32 AM (in response to adamw)How about the @AuditTable anotation, using the catalog property? -
4. Re: How to change or customize the field names in the Audited tables
adamw Mar 8, 2010 3:31 PM (in response to hope2010)But that has nothing to do with display names, catalog is used by some databases to specify the "table space" that a table lives in.
Adam
-
5. Re: How to change or customize the field names in the Audited tables
hope2010 Mar 8, 2010 3:34 PM (in response to adamw)I will go then with creating the special annotation @AuditedName annotation . Thanks for your time, awesome tool you wrote!