Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#253 Substitutions in <post-table-create>

v3.2
open
nobody
JBossCMP (36)
5
2003-08-04
2003-08-04
Heiko W.Rupp
No

In the sql-statements in <post-table-create/>
it is now possible to use %%t to subsitute for the
actual table name and %%n for a increasing number.
This can be helpful if you want to use <post-table-create/>
in <defaults/> sections of jbosscmp-jdbc.xml like the
following:

<defaults>
<post-table-create>
<sql-statement>CHECKPOINT</sql-statement>
<sql-statement>ALTER TABLE %%t ADD COLUMN blabla INT
</sql-statement>
<sql-statement>Create index b_idx%%n on
%%t(blabla)</sql-statement>
</post-table-create>
</defaults>

Discussion

  • Heiko W.Rupp
    Heiko W.Rupp
    2003-08-04

    • assigned_to: pilhuhn --> nobody