企业网站管理中英文翻译资料
《企业网站管理中英文翻译资料》由会员分享,可在线阅读,更多相关《企业网站管理中英文翻译资料(9页珍藏版)》请在毕设资料网上搜索。
1、Understanding object/relational persistence The approach to managing persistent data has been a key design decision in every software project weve worked on. Given that persistent data isnt a new or unusual requirement for Java applications, youd expect to be able to make a simple choice among simil
2、ar, well-established persistence solutions. Think of web application frameworks (Jakarta Struts versus WebWork), GUI component frameworks (Swing versus SWT), or template engines (JSP versus Velocity). Each of the competing solutions has advantages and disadvantages, but they at least share the same
3、scope and overall approach. Unfortunately, this isnt yet the case with persistence technologies,where we see some wildly differing solutions to the same problem. For several years, persistence has been a hot topic of debate in the Java community.Many developers dont even agree on the scope of the pr
4、oblem. Is “persistence” a problem that is already solved by relational technology and extensions such as stored procedures, or is it a more pervasive problem that must be addressed by special Java component models such as EJB entity beans? Should we hand-code even the most primitive CRUD (create, re
5、ad, update, delete) operations in SQL and JDBC, or should this work be automated? How do we achieve portability if every database management system has its own SQL dialect? Should we abandon SQL completely and adopt a new database technology, such as object database systems? Debate continues, but re
6、cently a solution called object/relational mapping (ORM) has met with increasing acceptance. Hibernate is an open source ORM implementation.Hibernate is an ambitious project that aims to be a complete solution to the problem of managing persistent data in Java. It mediates the applications interacti
7、on with a relational database, leaving the developer free to concentrate on the business problem at hand. Hibernate is an non-intrusive solution. By this we mean you arent required to follow many Hibernate-specific rules and design patterns when writing your business logic and persistent classes; th
8、us, Hibernate integrates smoothly with most new and existing applications and doesnt require disruptive changes to the rest of the application. This article is about Hibernate. Well cover basic and advanced features and describe some recommended ways to develop new applications using Hibernate.Often
9、, these recommendations wont be specific to Hibernatesometimes they will be our ideas about the best ways to do things when working with persistent data, explained in the context of Hibernate. Before we can get started with Hibernate,however, you need to understand the core problems of object persis
10、tence and object/relational mapping. This chapter explains why tools like Hibernate are needed. First, we define persistent data management in the context of object-oriented applications and discuss the relationship of SQL, JDBC, and Java, the underlying technologies and standards that Hibernate is
11、built on. We then discuss the socalled object/relational paradigm mismatch and the generic problems we encounter in object-oriented software development with relational databases. As this list of problems grows, it becomes apparent that we need tools and patterns to minimize the time we have to spen
12、d on the persistence-related code of our applications. After we look at alternative tools and persistence mechanisms, youll see that ORM is the best available solution for many scenarios. Our discussion of the advantages and drawbacks of ORM gives you the full background to make the best decision wh
13、en picking a persistence solution for your own project. What is persistence? Almost all applications require persistent data. Persistence is one of the fundamental concepts in application development. If an information system didnt preserve data entered by users when the host machine was powered off
14、, the system would be of little practical use. When we talk about persistence in Java, were normally talking about storing data in a relational database using SQL. We start by taking a brief look at the technology and how we use it with Java. Armed with that information, we then continue our discuss
15、ion of persistence and how its implemented in object-oriented applications. Relational databases You, like most other developers, have probably worked with a relational database.In fact, most of us use a relational database every day. Relational technology is a known quantity. This alone is sufficie
16、nt reason for many organizations to choose it. But to say only this is to pay less respect than is due. Relational databases are so entrenched not by accident but because theyre an incredibly flexible and robust approach to data management. A relational database management system isnt specific to Ja
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中设计图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 企业 网站 管理 中英文 翻译 资料
