Grails 1.3.7 Hibernate mapping file must be in 2 locations?
===

In Grails 1.3.7 (haven't had time to migrate to a newer version) I'm trying to use a Hibernate mapping file in order to correctly map a legacy DB.  I have a domain class defined which contains the various variable declarations but no mapping information.

The hibernate mappings work fine, but in order to get the application to run I have to keep the mapping file in two locations: `grails-app/conf/hibernate/com.example.MyClass.hbm.xml` and `grails-app/conf/hibernate/com/example/MyClass.hbm.xml`  The hibernate configuration's resource entry is for `com.example.MyClass.hbm.xml`.  

I've tried making the resource `MyClass.hbm.xml` and only putting the mapping file in `grails-app/conf/hibernate/MyClass.hbm.xml` but that didn't work.  I get a `org.hibernate.DuplicateMappingException: Duplicate collection role mapping...` error for the associations.

I determined the dual-location need by finding a post somewhere suggesting putting the mapping file in a package hierarchy `com/example/MyClass.hbm.xml`.  So I moved my mapping file there and the application ran, but after a `grails clean` it was broken.  So I moved it back and it ran, but after a `grails clean` it was broken.  So I put it in both places and it now consistently runs even after cleaning. (Each of the breaks resulted in errors about duplicate mappings or missing mappings depending on which combination of things I tried.)

So it seems like 2 things are looking for this mapping file and each expects to find it in a different place and so long as they've each found it once in the compile history they're happy.  But this all seems rather sketchy and brittle.

Any ideas on a solution that will still get me the domain class injections (some people suggest moving the code to src/groovy, but that loses the injections) but only need one copy of my mapping file?

This is actually going to be a plugin, so using an install script to copy it to the 2nd location is a possibility if no other solution is presented.

Thoughts?