开发者

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"/>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜