We all know the tag class name = “class.name” table =”table name” schema=”schame” in hbm.xml
but what if you want the schema to be decided based on your build, for QA, DEV or PROD. This schema can very, and you dont want to have multiple copies of hbm files in your repo.
Amswer – you filters in ANT and you get to decide which schema you will use when you build based on QA,DEV or Prod.
in the hbm.xml you will specify the tag as
class name = “class.name” table =”table name” schema=”@schame_to_be_decided@”
and the use the ant filter as in the file attachment hibernateant.doc. This way you can decide wht schema you will use based on the condition or env.