嗨...如何使用休眠模式映射概念模型 [英] Hi... How to mapping conceptual model using hibernate

查看:86
本文介绍了嗨...如何使用休眠模式映射概念模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道一篇很好的文章或书,学习将一个概念模型映射到xml文件以供nhibernate使用,我完成了一个概念模型,并且我想创建xml文件来映射和使用nhibernate,我有点与ideia混淆如何将我的模型抽象为xml文件以使用正确的方式映射我的数据库...我与我的数据库模型一起阅读....

我的问题是使用继承的类,我有很多使用继承和接口的类,我不知道顶部如何映射这种情况

我希望这里有人可以帮助我...

抱歉,我的谦虚问题

非常感谢您...

I would to like to know one good article or book that learn to map one conceptual model to xml files for use nhibernate, i have one conceptual model finished and i want to create xml files to map and use nhibernate, i am litle confuse with the ideia how to abstract my model in to xml files to map my database using the correct way... i am with my database model read to....

My problem is with the classes using inheritance, i have a lot of classes using inheritance and interfaces, i dont know how top map this situation

I hope that someone here can help me...

Sorry about my humble question

Thank You very much...

推荐答案

您好,

我通过仔细阅读并尝试理解nhibernate参考指南来艰难地学习了它.
恕我直言,它虽然很好,但可以一次消化"很多,但它是很好并且可以理解的.

亲自处理文档中提供的示例并使其适应我的需要,这对我个人很有帮助.

继承映射(第8章)可能是您可能要研究的内容,尽管我建议先从更简单的类开始,然后手动查看生成的sql代码,以了解nhibernate可以(也不能)的感觉.
Hello,

I learned it the hard way by carefully reading and trying to understand the nhibernate reference guide.
IMHO it is pretty good and understandable although a lot to "digest" at once.

It helped me personally a lot to play around with the examples given in the documentation and adapt them for my uses.

Inheritance Mapping (Chapter 8) is probably what you might want to look into although I would recommend to start with simpler classes first and look manually into the generated sql code to get a feeling what nhibernate can (and cannot).


这篇关于嗨...如何使用休眠模式映射概念模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆