惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - thh

svm资料收集 向量空间及其他相关数学结构 - thh 难题--autoconf、automake、libtool Linq 中不爽之处 关于UI设计的文章汇总 Window Live Writer LR 剖析器 MVP模式中的P和V关系 Guid、Int、BigInt编号的速度和存储空间的比较 - thh 静态构造函数线程安全的几个版本[转载] 区域性 ID 2155 (0x086B)不是受支持的区域性 解决方法 - thh windbg给clr设置断点 python ip和int 互转函数 - thh 关于OpenId Python SOAPpy访问asp.net web service 代码 Python SOAPpy 和 .net WebService - thh Type.GetType 获得本Assembly以外的类型 NHibernate 代码生成工具 - thh NHibernate使用笔记
interface与pojo类之间的关系
thh · 2007-06-29 · via 博客园 - thh

     写成程序为了更好的使用oo,较多的使用interface来的编程。但是遇到一个问题:使用nhibernate中,创建的pojo对象,该对象是否的访问是否应该通过interface。如果使用interface,好处是程序的比较符合oo的原则,但是在创建nhibernate的映射类时,却不是很方便,实现的问题也比较多。但是目前来说还是整理不太清楚。

    如果此问题扩展一下,可以这么理解,是直接吧pojo对象给上层对象使用,还是通过interface包装一下,再给上层对象使用。那位高手看到,不知道可否赐教一下。

   http://www.ibm.com/developerworks/cn/java/j-hibernate/index.html  提供了一个java版的pojo对象继承的事例,不知道到nhibernate的mapping objects是否能够实现interface类的目标。