- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Chapter 7 Java Persistence API 7.1 Persistence Basics 7.1.1 Entity Classes 7.1.2 Persistent Fields and Properties 7.1.3 Entity Ids and Primary Keys 7.2 Entity Relationships 7.2.1 Multiplicity 7.2.2 Direction in Entity Relationships 7.3 Storing and Manipulating Entities 7.3.1 Persistence Context 7.3.2 Manipulating entities 7.3.3 Finding Entities by EntityManager Your First JPA Application 7.5 Practice Labs 7.6 Summary 7.7. Self Review Questions 7.8 Exercises Java Persistence 7.1 Persistence Basics 7.1.1 Introduction Java programs consist of classes and objects. As you may recall from when you first learned Java, the classes are sort of like types in that they represent kinds of things or concepts. The objects, which are particular instances of the classes, represent specific examples of the more general class. All of this is an attempt to model real-world information in a way that computers (and programmers) can easily work with. The program starts, creates some objects of various classes, and goes on to manipulate them to achieve the desired results. When it is finished, the Java garbage collector throws away the left-over objects in order to free up precious system resources. But sometimes that isn’t what you want. Suppose you need to keep a log of every user to access your application along with the time, date, and what the user did in the application. All of a sudden classes and objects seem to come up short of the goal. What is needed is a way to make the objects stick around between the first time the program was run (when the users accesses the program) and the last time the program was run (when it is time to review the logs to make sure both the application and the users are behaving themselves). This is the problem of persistence and exactly the situation that the Java Persistence API (JPA) was designed for. There are many ways to solve t
您可能关注的文档
最近下载
- 中外建筑史幻灯片.ppt VIP
- 河北高速公路集团有限公司招聘笔试题库2024.pdf
- 《景观规划设计》课件——乡村景观园林庭院设计.pptx VIP
- 风力发电设备加工项目投资计划书(参考).docx
- 人教版高中地理必修第一册第一章:宇宙中的地球大单元整体教学设计2024.docx
- 工程造价软件应用 课件 第2章 广联达BIM土建计量平台应用.pptx
- 特色校本教材——魔幻数学(一年级).docx VIP
- 2025一建《建筑工程管理与实务》考前6套模拟卷.docx VIP
- 工程勘察服务成本要素信息(2022版).pdf VIP
- 2024年秋季学期新人教版七年级上册英语课件 Unit 1 You and Me (第4课时) Section B 1a-1d.pptx VIP
文档评论(0)