Is multiple named query file possible
I always see a single file being used for named query. I have never seen multiple开发者_Go百科 file for queries, but can it be done?
Yes. You can add as many as you want.
It's actually a mapping file, but hibernate doesn't care if there isn't a class mapping definition in there. See the docs here, so you should add a
<mapping resource="path/to/your/Mapping-or-query-file.hbm.xml"/>
精彩评论