We would like to customize hibernate reverse engineering process so that each time we re-generate hibernate mappings from the Oracle DB, a child tag <cache usage=”read-only”/> is added to the class tag.
I used the replaceregexp ant task to add this <cache usage=”read-only”/> to my Hibernate mappings, but if there is a smarter way to do that, I would like to know.
By the way I need to add mutable=false attribute to the class tag.
Thanks in advance