SAP HANA Cloud – Virtual Bootcamp: How to use the HANA Persistence Se…

1,252 views
1,093 views

Published on

How to use HANA Persistence Services
Agenda:
SAP HANA Cloud Persistence Service
How to access the SAP HANA DB
What is JPA?
EclipseLink
JPA and SAP HANA DB
Demo & Scenarios
Q&A

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,252
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

SAP HANA Cloud – Virtual Bootcamp: How to use the HANA Persistence Se…

  1. 1. SAP HANA Cloud – Virtual BootcampHow to use the HANA Persistence Service@saphanacloudDr. Bernd HofmannApril 2013SAP HANA Cloud
  2. 2. © 2012 SAP AG. All rights reserved. 2DisclaimerThis presentation outlines our general product direction and should not be relied on in making apurchase decision. This presentation is not subject to your license agreement or any other agreementwith SAP. SAP has no obligation to pursue any course of business outlined in this presentation or todevelop or release any functionality mentioned in this presentation. This presentation and SAPsstrategy and possible future developments are subject to change and may be changed by SAP at anytime for any reason without notice. This document is provided without a warranty of any kind, eitherexpress or implied, including but not limited to, the implied warranties of merchantability, fitness for aparticular purpose, or non-infringement. SAP assumes no responsibility for errors or omissions in thisdocument, except if such damages were caused by SAP intentionally or grossly negligent.
  3. 3. © 2012 SAP AG. All rights reserved. 3Why SAP HANA Cloud Persistence Service?SAP HANA DBSAP HANA DB
  4. 4. © 2012 SAP AG. All rights reserved. 4SAP HANA Cloud Persistence ServiceApplicationJDBC / JPAschema / user / connectivitySAP HANA DB pool of databases installation + upgrade backup + restore monitoring + alerting high availability (planned) 24x7 operationsSybase ASEMaxDB
  5. 5. © 2012 SAP AG. All rights reserved. 5How to access the SAP HANA DB2 Possibilities JDBC JPA (EclipseLink)2 SDKs 1.* 2.* (beta): Java EE 6 Web Profile (certified)
  6. 6. © 2012 SAP AG. All rights reserved. 6How to access the SAP HANA DBSDK 1.* SDK 2.* (Beta)JDBCJPApersistence-with-jpaAdding Persistence Using JPA(SDK 1.x)persistence-with-ejbAdding Persistence Using JPA(SDK 2.x Beta)Adding Persistence Using JDBCpersistence-with-jdbc (≥ SDK 1.24.1)Relational PersistenceApplication-managed Persistence Container-managed Persistence
  7. 7. © 2012 SAP AG. All rights reserved. 7What is JPA?ID FIRSTNAME LASTNAME ID MANAGERID FIRSTNAME LASTNAME CLASS MANAGERPERSON EMPLOYEEPERSON_EMPLOYEERDBMS?
  8. 8. © 2012 SAP AG. All rights reserved. 8EclipseLink JPA (Java Persistence API, JSR 317) Object/Relational Mapping Reference Implementation:EclipseLink SAP has two committers SAP HANA Cloud always uses latestreleased version (at present 2.4.1) Other JPA providers (e.g. Hibernate,OpenJPA, ..) are also possibleRDBMS
  9. 9. © 2012 SAP AG. All rights reserved. 9JPA and SAP HANA DB…Derby Oracle SybaseASESAPMaxDBSAPHANA DBApplicationSAPHANA DB…
  10. 10. © 2012 SAP AG. All rights reserved. 10Until then (Release of EclipseLink 2.5.0) …1. [only SDK 1.x]Addcom.sap.core.persistence.osgi.hdb.platform_x.y.z.jar(in SDK repository/plugins) to yourlibfolder (as explained in Adding Persistence Using JPA (SDK 1.x), step 3.1.2)2. Add<property name="eclipselink.target-database" value="HANA"/>to yourpersistence.xml3. [if necessary; once only!]re-deploy with<property name="eclipselink.ddl-generation" value="drop-and-create-tables"/>Samples run out of the box!
  11. 11. Demo
  12. 12. © 2012 SAP AG. All rights reserved. 12Demo ScenariosSAPHANA DBAppAppDerby SAPHANA DB1 23local SAP HANA Cloud
  13. 13. © 2012 SAP AG. All rights reserved. 13Access of HANA DB in HANA CloudAppJDBCHANA StudioHTTPSJDBC?Browser
  14. 14. Demo
  15. 15. © 2012 SAP AG. All rights reserved. 15Further Information SAP HANA Cloud Homepage SAP HANA Cloud Persistence Service (Documentation) www.saphana.comPartner Center https://www.saphanacloudappspartnercenter.comDeveloper Center http://scn.sap.com/community/developer-center/cloud-platformSAP HANA Cloudbit.ly/saphanacloud@saphanacloud
  16. 16. © 2012 SAP AG. All rights reserved. 16SAP HANA Cloud Virtual Bootcamp SessionsScheduleVirtual Bootcamp session of 1.5 hours: 5th Virtual Bootcamp: Securing SAP HANA Cloud Applications: May 9th, 5 p.m. CETSecurity, Identity and Access Management are top priorities when considering moving applications to the cloud. This lecture gives guidance on how you canuse the features to build solutions that meet your security requirements. As a flexible and open cloud platform, does SAP HANA Cloud provide the rock-solid security required for your most sensitive data and applications? How do you authenticate and authorize users? How is your data isolated on SAP HANA Cloud and can you securely connect to your On-Premise systems? How do you secure access from mobile clients, and what if you want to have Single Sign-On (SSO) with other SAP Cloud solutions via SAP IDService or your corporate user directory?At the end of each session, we will give some time for Q&A.Remarks:■ The Virtual Bootcamp sessions are scheduled for the developers of our HANA Cloud Applications partnersand the community interested in our HANA Cloud Applications partner program.■ The sessions will be recorded and provided to our HANA Cloud Partner community.
  17. 17. Discussion / Q&A
  18. 18. © 2012 SAP AG. All rights reserved. 18Questions & AnswersQ: Where is HANA actually hosted - what latency between the Java application and HANA database one can expect?A: The HANA databases are located in the same data center as the applications (as can be seen on slide 13), so there isminimal latency between application and database.Q: Can different applications in the same account use different database types (HANA vs. non-HANA)?A: No, at present the configuration of the database type is on account level.Q: What is the roadmap for supporting that?A: By end of Q2/2013 it will be possible to specify the database type (HANA DB, Sybase ASE, MaxDB) as new parameter ofthe deployment. With that option it will be possible to assign each application to its own database type independently ofthe other applications in the same account.
  19. 19. Thank You!Contact information:Dr. Bernd HofmannSAP HANA Cloudbernd.hofmann@sap.com
  20. 20. © 2012 SAP AG. All rights reserved. 20No part of this publication may be reproduced or transmitted in any form or for any purpose without the expresspermission of SAP AG. The information contained herein may be changed without prior notice.Some software products marketed by SAP AG and its distributors contain proprietary software components ofother software vendors.Microsoft, Windows, Excel, Outlook, PowerPoint, Silverlight, and Visual Studio are registered trademarks ofMicrosoft Corporation.IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, Systemz10, z10, z/VM, z/OS, OS/390, zEnterprise, PowerVM, Power Architecture, Power Systems, POWER7,POWER6+, POWER6, POWER, PowerHA, pureScale, PowerPC, BladeCenter, System Storage, Storwize,XIV, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, AIX, Intelligent Miner, WebSphere,Tivoli, Informix, and Smarter Planet are trademarks or registered trademarks of IBM Corporation.Linux is the registered trademark of Linus Torvalds in the United States and other countries.Adobe, the Adobe logo, Acrobat, PostScript, and Reader are trademarks or registered trademarks of AdobeSystems Incorporated in the United States and other countries.Oracle and Java are registered trademarks of Oracle and its affiliates.UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks orregistered trademarks of Citrix Systems Inc.HTML, XML, XHTML, and W3C are trademarks or registered trademarks of W3C®, World Wide WebConsortium, Massachusetts Institute of Technology.Apple, App Store, iBooks, iPad, iPhone, iPhoto, iPod, iTunes, Multi-Touch, Objective-C, Retina, Safari, Siri,and Xcode are trademarks or registered trademarks of Apple Inc.IOS is a registered trademark of Cisco Systems Inc.RIM, BlackBerry, BBM, BlackBerry Curve, BlackBerry Bold, BlackBerry Pearl, BlackBerry Torch, BlackBerryStorm, BlackBerry Storm2, BlackBerry PlayBook, and BlackBerry App World are trademarks or registeredtrademarks of Research in Motion Limited.© 2012 SAP AG. All rights reserved.Google App Engine, Google Apps, Google Checkout, Google Data API, Google Maps, Google Mobile Ads,Google Mobile Updater, Google Mobile, Google Store, Google Sync, Google Updater, Google Voice,Google Mail, Gmail, YouTube, Dalvik and Android are trademarks or registered trademarks of Google Inc.INTERMEC is a registered trademark of Intermec Technologies Corporation.Wi-Fi is a registered trademark of Wi-Fi Alliance.Bluetooth is a registered trademark of Bluetooth SIG Inc.Motorola is a registered trademark of Motorola Trademark Holdings LLC.Computop is a registered trademark of Computop Wirtschaftsinformatik GmbH.SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP BusinessObjects Explorer, StreamWork,SAP HANA, and other SAP products and services mentioned herein as well as their respective logos aretrademarks or registered trademarks of SAP AG in Germany and other countries.Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, WebIntelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as theirrespective logos are trademarks or registered trademarks of Business Objects Software Ltd. Business Objectsis an SAP company.Sybase and Adaptive Server, iAnywhere, Sybase 365, SQL Anywhere, and other Sybase products and servicesmentioned herein as well as their respective logos are trademarks or registered trademarks of Sybase Inc.Sybase is an SAP company.Crossgate, m@gic EDDY, B2B 360°, and B2B 360° Services are registered trademarks of Crossgate AGin Germany and other countries. Crossgate is an SAP company.All other product and service names mentioned are the trademarks of their respective companies. Datacontained in this document serves informational purposes only. National product specifications may vary.The information in this document is proprietary to SAP. No part of this document may be reproduced, copied,or transmitted in any form or for any purpose without the express prior written permission of SAP AG.

×