-->
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.  [ 1 post ] 
Author Message
 Post subject: [Envers] Customizing audit table
PostPosted: Sat Jan 15, 2011 6:31 pm 
Newbie

Joined: Sat Jan 15, 2011 5:57 pm
Posts: 1
Location: France, Paris
Hello,

For a project I need to record every change in a table. So Envers seems perfect.
But tables must satisfy a peculiar requirement. All columns of a table must start with a trigram. And of course this trigram is different for every table, otherwise it would have been to simple...

Is it possible to customize columns name of the generated tables ?

Example :

Audited table :
Code:
+------------------+
| TABLE            |
+------------------+
| TAB_COLUM_ONE    |
| TAB_COLUMN_TWO   |
| TAB_COLUMN_THREE |
+------------------+


Audit table :
Code:
+------------------+
| TABLE_HISTORY    |
+------------------+
| TAH_COLUM_ONE    |
| TAH_COLUMN_TWO   |
| TAH_COLUMN_THREE |
| TAH_REV          |
| TAH_REVTYPE      |
+------------------+


Thanks,
ForTeX


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

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.