如果我学习 NHibernate 我就能了解 Hibernate 吗? Spring.net 和 (Java) Spring 怎么样?
我是一名核心 Java 开发人员 (J2SE),被分配到一个单人项目,一个小型 Intranet 网站。
当我的导师需要微软技术时,我正打算学习Hibernate和Spring。我决定使用 ASP.Net MVC,但我觉得我错过了学习我想要的东西的机会。
如果我放弃 ASP.Net MVC 并开始学习 NHibernate 和 Spring.Net,我是否能够将这些知识无缝地转移到 Java 环境?
注意:我曾经使用过 iTextSharp,它是流行的 Java iText(PDF 库)的 .Net 端口。两种环境的使用情况有 95% 相同。 Spring 和 Hibernate 会发生这种情况吗?
I am a core Java developer (J2SE) that was assigned to a one-man project, a small intranet website.
I was planning to learn Hibernate and Spring when my supervisor required Microsoft technologies. I decided to use ASP.Net MVC but I am feeling that I am missing a chance to learn what I wanted.
If I drop ASP.Net MVC and start learning NHibernate and Spring.Net will I be able to seamlessly transfer that knowledge to the Java environment?
NOTE: I once used iTextSharp, a .Net port from the popular Java iText (PDF library). The usage on both environments was 95% the same. Does this happen with Spring and Hibernate?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您学习 NHibernate,您就了解 Hibernate。如果您学习了 Spring.net,您就了解 Spring。理解这些概念很重要,如果你对这些概念有很强的把握,那么你就不会有任何问题。您可以很快掌握实际的实施细节。
If you learn NHibernate, you know Hibernate. If you learn Spring.net, you know Spring. It's the concepts which are important to understand, and if you have a strong grasp of those, you'll have no problem. The actual implementation details are something you can pick up rather quickly.
NHibernate 和 Hibernate 非常相似,了解其中一种就可以掌握另一种的 80%。春季部分?没那么多。
我是一名 .NET 开发人员,所有事情都使用 NHibernate,三周前,我必须为学校使用 Oracle(Sun?)Java Server Pages (JSP) 制作一个网站。我以前对 Java 的了解是零,虽然我花了一两天的时间才学会了基本的 JSP 页面,但我将 NHibernate 知识转移到 Java 的 Hibernate 几乎是无缝的。一周之内,我就能够用 Java 破解一个基本的数据驱动网站。
我经常在 .NET 应用程序中使用这个 Hibernate 教程:Hibernate 参考文档
简而言之,要将我的 NHibernate 知识转移到 Java,我唯一需要的指南就是 Netbeans 的简单化的“在 Web 应用程序中使用 Hibernate",这是我已经了解的 Hibernate 高级功能。
NHibernate and Hibernate are very similar and knowing one will get you 80% of the other. The Spring part? not so much.
I'm a .NET developer who uses NHibernate for everything, and three weeks ago, I had to do a web site using Oracle's (Sun?) Java Server Pages (JSP) for school. I previously had zero knowledge of Java whatsoever, and although it took me one or two days to learn the ropes of basic JSP pages, transferring my NHibernate knowledge to Java's Hibernate happened in an almost seamless fashion. In a week, I was able to hack a basic data-driven website in Java.
I frequently use this Hibernate tutorial for my .NET applications: Hibernate Reference Documentation
In a nutshell, to transfer my NHibernate knowledge to Java, the only guide I needed was Netbeans' simplistic "Using Hibernate in a Web Application", as Hibernate's advanced features I already knew about.
不太可能。 Hibernate 和 Spring 比 iText 等复杂一个数量级。 .NET 版本可能受到 Java 版本的启发,但它们的工作方式有很大不同。您可能能够相当快地掌握这些模式和实践,但是如果您想做除最琐碎的应用程序之外的任何事情,那么仍然会有一个陡峭的学习曲线。
Unlikely. Hibernate and Spring are an order of magnitude more complex than something like iText. The .NET versions may have been inspired by the Java versions, but they're going to differ a lot in how they work. You'll likely be able to pick up the patterns and practices fairly quickly, but there's still going to be a steep learning curve if you want to do anything other than the most trivial of applications.
你可以使用 ASP.NET MVC 和 NHibernate 和 Spring.NET
你的导师会很高兴,你也能学到你想学的东西。
You can use ASP.NET MVC and NHibernate and Spring.NET
Your supervisor will be happy, and you will be able to learn what you want to learn.