Hi Buddhika,
In short, these configurations always do the same thing. They're regular expressions matching things, in this case, you have to match TEST\.ID_TEST.
If you're using another database that supports schemas and/or catalogs, you'd have to prepend those as well, e.g. by matching all schemata: (.*?\.)?TEST\.ID_TEST
And if you want to stay on the safe side, you can make your regex case insensitive: (?i:TEST\.ID_TEST)
And yes, this is the ordinary code generator <configuration> element, which you may use in standalone code generator configurations, or with maven, etc.
Hope this helps,
Lukas