DSP HUB Software

Total Page:16

File Type:pdf, Size:1020Kb

DSP HUB Software Ref. Ares(2018)2443566 - 08/05/2018 Political and sOcial awareness on Water EnviRonmental challenges GA N.687809 Deliverable Title D2.2 DSP HUB software - Beta release report Deliverable Lead: BASEFORM Related Work Package: WP2: DSP set-up and start-up Related Task: Task 2.2 Development of DSP HUB tier Main Author: Diogo Vitorino (Baseform) Other Authors: Sergio T. Coelho, Sergio Nunes (Baseform) Dissemination Level: Public Due Submission Date: 30.11.2016 Actual Submission: 25.09.2017 Project Number 687809 Instrument: H2020-ICT10-2015 Start Date of Project: 01.12.2015 Duration: 48 months Abstract This Report describes the purpose, functionality and usage of the Power DSP’s HUB software in its Beta release, which was made available to the project partners on 23/11/2016 at powerhub.baseform.com. It is developed under Task 2.2 of Work Package 2 - DSP set-up and start-up. The HUB backend management system allows for creating and managing content, and running the social participation and gamification functionality of a city’s or utility’s DSP, as well as capabilities to retrieve data and perform analyses that may inform content. This component of the DSP is a non- public system, accessible only to the staff in charge of the DSP and includes data integration services for integrating and exposing environmental static and dynamic data and indicators. It follows the architecture and functionalities developed in Task 2.1 and detailed in deliverable D2.1. D2.2 DSP HUB software – Beta release report POWER 25.09.2017 687809 Project funded by the European Commission under the H2020 Programme, Call ICT10-2015 ‘Collective Awareness Platforms for Sustainability and Social Innovation’ - Topic c) Digital Social Platforms (DSP). Versioning and Contribution History Version Date Modified by Modification reason v.00 08/11/2016 Sergio T. Coelho Draft preparation started v.01 24/11/2015 Diogo Vitorino, Sergio T. Internal team draft, final round Coelho, Sergio Nunes v.02 28/11/2016 Diogo Vitorino, Sergio T. Final draft, Baseform team Coelho, Sergio Nunes v.03 21/07/2017 Sara Mendes, Sérgio Revised version (post-M18 review), Baseform Nunes, Sérgio T. Coelho draft v.04 31/08/2017 Sérgio T. Coelho, Sérgio Updated Baseform draft incorporating comments Nunes by Jasminko Novak, Mathias Becker, Carl Holland, Daniel Coles, Alex Cameron v.05 09/09/2017 Sérgio Nunes Review and consistency check vs. ongoing software developments v.06 25/09/2017 Sérgio T Coelho, Sérgio Final version before resubmission. Nunes Page 2 of 53 D2.2 DSP HUB software – Beta release report POWER 25.09.2017 687809 Table of Contents 1 Introduction ............................................................................................................................................... 9 2 Software design ....................................................................................................................................... 11 2.1 Overview .......................................................................................................................................... 11 2.1.1 Usage of preexisting modules .................................................................................................... 11 2.2 Use cases ......................................................................................................................................... 11 2.3 User management, security and interoperability ........................................................................... 12 2.3.1 User management ..................................................................................................................... 12 2.3.2 Authentication and security ...................................................................................................... 12 2.3.3 Interoperability and interdependency ...................................................................................... 14 2.4 Data Management ........................................................................................................................... 14 2.5 Gamification and knowledge visualization ...................................................................................... 15 2.6 User interface .................................................................................................................................. 15 2.7 Functional modules ......................................................................................................................... 15 3 Implementation ....................................................................................................................................... 18 3.1 Overview .......................................................................................................................................... 18 3.2 CMS .................................................................................................................................................. 18 3.3 Statistics ........................................................................................................................................... 18 3.4 Gamification .................................................................................................................................... 18 3.5 Software libraries ............................................................................................................................ 19 3.6 Multilingual support ........................................................................................................................ 20 4 The HUB’s user interface and its information, analytics and content management features ................ 22 4.1 Introduction ..................................................................................................................................... 22 4.2 Maps ................................................................................................................................................ 23 4.2.1 Generating a map ...................................................................................................................... 23 4.2.2 Editing a map ............................................................................................................................. 25 4.2.3 Publishing a map ........................................................................................................................ 27 4.3 Issues ............................................................................................................................................... 27 4.3.1 Issue configuration and DSP PUB outputs ................................................................................. 28 4.3.2 Issue sections ............................................................................................................................. 31 4.3.3 Issue documents ........................................................................................................................ 36 4.3.4 Issue Events ............................................................................................................................... 37 4.3.5 Issue Surveys .............................................................................................................................. 38 4.3.6 Issue Gamification set up ........................................................................................................... 39 4.4 Participants ...................................................................................................................................... 41 4.5 Statistics ........................................................................................................................................... 42 4.6 DSP Properties ........................................................................................................................... 43 5 Included Baseform analytics applications ............................................................................................... 45 5.1 The Quickstart ‘home’ level ............................................................................................................. 45 Page 3 of 53 D2.2 DSP HUB software – Beta release report POWER 25.09.2017 687809 5.2 The Data Manager ........................................................................................................................... 45 5.3 Geodata visualization and geo-processing using the SHAPE module ............................................. 46 5.4 The Monitor modules: Events, Meters, Zones and Water Balance ................................................. 47 5.5 The Diagnosis modules: Network Model and Performance Indices ............................................... 48 5.6 The Predict modules: Failure, Inspections, Component Importance and Unmet Demand ............ 49 5.7 The Planning modules: Plan, Performance Indicators, Financial Analysis and IVI .......................... 49 6 Final remarks ........................................................................................................................................... 51 Appendix A – Baseform software Quickstarts and How-to Guides ................................................................. 52 References ....................................................................................................................................................... 53 Page 4 of 53 D2.2 DSP HUB software – Beta release report POWER 25.09.2017 687809 Table of Figures Figure 1 - Schematic representation
Recommended publications
  • The State of the Feather
    The State of the Feather An Overview and Year In Review of The Apache Software Foundation The Overview • Not a replacement for “Behind the Scenes...” • To appreciate where we are - • Need to understand how we got here 2 In the beginning... • There was The Apache Group • But we needed a more formal and legal entity • Thus was born: The Apache Software Foundation (April/June 1999) • A non-profit, 501(c)3 Corporation • Governed by members - member based entity 3 “Hierarchies” Development Administrative PMC Members Committers Board Contributors Officers Patchers/Buggers Members Users 4 At the start • There were only 21 members • And 2 “projects”: httpd and Concom • All servers and services were donated 5 Today... • We have 227 members... • ~54 TLPs • ~25 Incubator podlings • Tons of committers (literally) 6 The only constant... • Has been Change (and Growth!) • Over the years, the ASF has adjusted to handle the increasing “administrative” aspects of the foundation • While remaining true to our goals and our beginnings 7 Handling growth • ASF dedicated to providing the infrastructure resources needed • Volunteers supplemented by contracted out SysAdmin • Paperwork handling supplemented by contracted out SecAssist • Accounting services as needed • Using pro-bono legal services 8 Staying true • Policy still firmly in the hands of the ASF • Use outsourced help where needed – Help volunteers, not replace them – Only for administrative efforts • Infrastructure itself is a service provided by the ASF • Board/Infra/etc exists so projects and people
    [Show full text]
  • Objektově Orientovaný Přístup K Perzistentní Vrstvě V Prostředí Java Object Oriented Database Access in Java
    Objektově orientovaný přístup k perzistentní vrstvě v prostředí Java Object Oriented Database Access in Java Roman Janás Bakalářská práce 2014 *** nascannované zadání str. 1 *** *** nascannované zadání str. 2 *** UTB ve Zlíně, Fakulta aplikované informatiky, 2014 4 ABSTRAKT Předmětem bakalářské práce „Objektově orientovaný přístup k perzistentní vrstvě v prostředí Java“ je analýza dostupných ORM aplikačních rámců pro programovací jazyk Java. Cílem je zjistit, který aplikační rámec je v současnosti nejlépe použitelný. Obsahem práce je také srovnání s technologií JDBC - porovnání výkonnosti jednotlivých řešení a popis používaných návrhových vzorů. Praktická část názorně ukazuje práci se zvolenými aplikačními rámci a výsledky výkonnostních testů. Klíčová slova: ORM, Java, návrhové vzory, JDBC, Hibernate, Cayenne ABSTRACT The subject of the submitted thesis “Object Oriented Database Access in Java” is analysis of available ORM frameworks for programming language Java. The goal is to determine which framework is the most applicable. The content is also comparison with JDBC technology – comparison of efficiency of each solutions and description of used design patterns. The practical part clearly shows work with chosen frameworks and results of efficiency tests. Keywords: ORM, Java, design patterns, JDBC, Hibernate, Cayenne UTB ve Zlíně, Fakulta aplikované informatiky, 2014 5 Na tomto místě bych rád poděkoval Ing. Janu Šípkovi za cenné připomínky a odborné rady, kterými přispěl k vypracování této bakalářské práce. Dále děkuji svým kolegům z
    [Show full text]
  • Return of Organization Exempt from Income
    OMB No. 1545-0047 Return of Organization Exempt From Income Tax Form 990 Under section 501(c), 527, or 4947(a)(1) of the Internal Revenue Code (except black lung benefit trust or private foundation) Open to Public Department of the Treasury Internal Revenue Service The organization may have to use a copy of this return to satisfy state reporting requirements. Inspection A For the 2011 calendar year, or tax year beginning 5/1/2011 , and ending 4/30/2012 B Check if applicable: C Name of organization The Apache Software Foundation D Employer identification number Address change Doing Business As 47-0825376 Name change Number and street (or P.O. box if mail is not delivered to street address) Room/suite E Telephone number Initial return 1901 Munsey Drive (909) 374-9776 Terminated City or town, state or country, and ZIP + 4 Amended return Forest Hill MD 21050-2747 G Gross receipts $ 554,439 Application pending F Name and address of principal officer: H(a) Is this a group return for affiliates? Yes X No Jim Jagielski 1901 Munsey Drive, Forest Hill, MD 21050-2747 H(b) Are all affiliates included? Yes No I Tax-exempt status: X 501(c)(3) 501(c) ( ) (insert no.) 4947(a)(1) or 527 If "No," attach a list. (see instructions) J Website: http://www.apache.org/ H(c) Group exemption number K Form of organization: X Corporation Trust Association Other L Year of formation: 1999 M State of legal domicile: MD Part I Summary 1 Briefly describe the organization's mission or most significant activities: to provide open source software to the public that we sponsor free of charge 2 Check this box if the organization discontinued its operations or disposed of more than 25% of its net assets.
    [Show full text]
  • Avaliando a Dívida Técnica Em Produtos De Código Aberto Por Meio De Estudos Experimentais
    UNIVERSIDADE FEDERAL DE GOIÁS INSTITUTO DE INFORMÁTICA IGOR RODRIGUES VIEIRA Avaliando a dívida técnica em produtos de código aberto por meio de estudos experimentais Goiânia 2014 IGOR RODRIGUES VIEIRA Avaliando a dívida técnica em produtos de código aberto por meio de estudos experimentais Dissertação apresentada ao Programa de Pós–Graduação do Instituto de Informática da Universidade Federal de Goiás, como requisito parcial para obtenção do título de Mestre em Ciência da Computação. Área de concentração: Ciência da Computação. Orientador: Prof. Dr. Auri Marcelo Rizzo Vincenzi Goiânia 2014 Ficha catalográfica elaborada automaticamente com os dados fornecidos pelo(a) autor(a), sob orientação do Sibi/UFG. Vieira, Igor Rodrigues Avaliando a dívida técnica em produtos de código aberto por meio de estudos experimentais [manuscrito] / Igor Rodrigues Vieira. - 2014. 100 f.: il. Orientador: Prof. Dr. Auri Marcelo Rizzo Vincenzi. Dissertação (Mestrado) - Universidade Federal de Goiás, Instituto de Informática (INF) , Programa de Pós-Graduação em Ciência da Computação, Goiânia, 2014. Bibliografia. Apêndice. Inclui algoritmos, lista de figuras, lista de tabelas. 1. Dívida técnica. 2. Qualidade de software. 3. Análise estática. 4. Produto de código aberto. 5. Estudo experimental. I. Vincenzi, Auri Marcelo Rizzo, orient. II. Título. Todos os direitos reservados. É proibida a reprodução total ou parcial do trabalho sem autorização da universidade, do autor e do orientador(a). Igor Rodrigues Vieira Graduado em Sistemas de Informação, pela Universidade Estadual de Goiás – UEG, com pós-graduação lato sensu em Desenvolvimento de Aplicações Web com Interfaces Ricas, pela Universidade Federal de Goiás – UFG. Foi Coordenador da Ouvidoria da UFG e, atualmente, é Analista de Tecnologia da Informação do Centro de Recursos Computacionais – CERCOMP/UFG.
    [Show full text]
  • Cayenne Guide
    Cayenne Guide Version 4.1 (4.1) Table of Contents 1. Object Relational Mapping with Cayenne . 2 1.1. Setup . 2 1.2. Cayenne Mapping Structure . 3 1.3. CayenneModeler Application . 5 2. Cayenne Framework . 8 2.1. Including Cayenne in a Project . 8 2.2. Starting Cayenne. 8 2.3. Persistent Objects and ObjectContext . 11 2.4. Expressions . 18 2.5. Orderings . 24 2.6. Queries . 24 2.7. Lifecycle Events . 37 2.8. Performance Tuning . 43 2.9. Customizing Cayenne Runtime . 50 3. Cayenne Framework - Remote Object Persistence. 61 3.1. Introduction to ROP . 61 3.2. ROP Deployment . 62 4. DB-First Flow. 63 4.1. Introduction. 63 4.2. Filtering. 64 4.3. Other Settings . 72 4.4. Reverse Engineering in Cayenne Modeler . 73 5. Additional Modules . 76 5.1. Cache Invalidation Extension . 76 5.2. Commit log extension . 77 5.3. Crypto extension. 78 5.4. JCache integration . 80 5.5. Project compatibility extension . 82 5.6. Apache Velocity Extension . 82 5.7. Cayenne Web Extension . 83 5.8. Cayenne OSGI extension . 84 5.9. Cayenne ROP Server Extension. 84 6. Build Tools . 85 6.1. Maven Plugin. 85 6.2. Gradle Plugin . 92 6.3. Ant Tasks . 96 7. Appendix A. Configuration Properties . 97 8. Appendix B. Service Collections . 100 9. Appendix C. Expressions BNF . 102 Copyright © 2011-2020 Apache Software Foundation and individual authors License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership.
    [Show full text]
  • Code Smell Prediction Employing Machine Learning Meets Emerging Java Language Constructs"
    Appendix to the paper "Code smell prediction employing machine learning meets emerging Java language constructs" Hanna Grodzicka, Michał Kawa, Zofia Łakomiak, Arkadiusz Ziobrowski, Lech Madeyski (B) The Appendix includes two tables containing the dataset used in the paper "Code smell prediction employing machine learning meets emerging Java lan- guage constructs". The first table contains information about 792 projects selected for R package reproducer [Madeyski and Kitchenham(2019)]. Projects were the base dataset for cre- ating the dataset used in the study (Table I). The second table contains information about 281 projects filtered by Java version from build tool Maven (Table II) which were directly used in the paper. TABLE I: Base projects used to create the new dataset # Orgasation Project name GitHub link Commit hash Build tool Java version 1 adobe aem-core-wcm- www.github.com/adobe/ 1d1f1d70844c9e07cd694f028e87f85d926aba94 other or lack of unknown components aem-core-wcm-components 2 adobe S3Mock www.github.com/adobe/ 5aa299c2b6d0f0fd00f8d03fda560502270afb82 MAVEN 8 S3Mock 3 alexa alexa-skills- www.github.com/alexa/ bf1e9ccc50d1f3f8408f887f70197ee288fd4bd9 MAVEN 8 kit-sdk-for- alexa-skills-kit-sdk- java for-java 4 alibaba ARouter www.github.com/alibaba/ 93b328569bbdbf75e4aa87f0ecf48c69600591b2 GRADLE unknown ARouter 5 alibaba atlas www.github.com/alibaba/ e8c7b3f1ff14b2a1df64321c6992b796cae7d732 GRADLE unknown atlas 6 alibaba canal www.github.com/alibaba/ 08167c95c767fd3c9879584c0230820a8476a7a7 MAVEN 7 canal 7 alibaba cobar www.github.com/alibaba/
    [Show full text]
  • The Apache Software Foundation Wraps up 2007 As Its Strongest Year to Da 2008-05-15 21.45
    The Apache Software Foundation Wraps Up 2007 As Its Strongest Year to Da 2008-05-15 21.45 announce <-- Thread --> <-- Date --> Search The Apache Software Foundation Wraps Up 2007 As Its Strongest Year to Date The Apache Software Foundation Tue, 15 Jan 2008 17:28:44 -0800 For Immediate Release Media Contact: Sally Khudairi The Apache Software Foundation +1 617 921 8656 [EMAIL PROTECTED] The Apache Software Foundation Wraps Up 2007 As Its Strongest Year to Date Flexible, Meritocratic Process of "The Apache Way" Plays Key Role in Meeting Growing Demand for Innovative, Community-Developed Open Source Technologies FOREST HILL, Md., Jan. 15 -- The Apache Software Foundation (ASF) -- stewards, incubators, and developers of leading Open Source projects, including Apache HTTP Server, the world's most popular Web server software for twelve years running -- today announced the 2007 year finished as its strongest ever, reinforcing the broad-reaching success of "The Apache Way." Lauded as one of the most compelling communities in Open Source, the all-volunteer Foundation looked back on milestones achieved during 2007, with ASF activities having grown at a steady rate. "We are grateful to all those individuals -- Members, Committers, developers, users, and supporters -- who have contributed to our success over the past year," said ASF Chairman Jim Jagielski. "Our achievements reflect strong commitment from our community, boosting confidence in our ability to meet end-user and market demand and building excitement about the work that is underway." 2007 HIGHLIGHTS AND MILESTONES http://www.mail-archive.com/[email protected]/msg00456.html Sida 1 av 5 The Apache Software Foundation Wraps Up 2007 As Its Strongest Year to Da 2008-05-15 21.45 Board: 2007 marked the largest changeover of ASF Board members since The ASF's incorporation in 1999.
    [Show full text]
  • Testsmelldescriber Enabling Developers’ Awareness on Test Quality with Test Smell Summaries
    Bachelor Thesis January 31, 2018 TestSmellDescriber Enabling Developers’ Awareness on Test Quality with Test Smell Summaries Ivan Taraca of Pfullendorf, Germany (13-751-896) supervised by Prof. Dr. Harald C. Gall Dr. Sebastiano Panichella software evolution & architecture lab Bachelor Thesis TestSmellDescriber Enabling Developers’ Awareness on Test Quality with Test Smell Summaries Ivan Taraca software evolution & architecture lab Bachelor Thesis Author: Ivan Taraca, [email protected] URL: http://bit.ly/2DUiZrC Project period: 20.10.2018 - 31.01.2018 Software Evolution & Architecture Lab Department of Informatics, University of Zurich Acknowledgements First of all, I like to thank Dr. Harald Gall for giving me the opportunity to write this thesis at the Software Evolution & Architecture Lab. Special thanks goes out to Dr. Sebastiano Panichella for his instructions, guidance and help during the making of this thesis, without whom this would not have been possible. I would also like to express my gratitude to Dr. Fabio Polomba, Dr. Yann-Gaël Guéhéneuc and Dr. Nikolaos Tsantalis for providing me access to their research and always being available for questions. Last, but not least, do I want to thank my parents, sisters and nephews for the support and love they’ve given all those years. Abstract With the importance of software in today’s society, malfunctioning software can not only lead to disrupting our day-to-day lives, but also large monetary damages. A lot of time and effort goes into the development of test suites to ensure the quality and accuracy of software. But how do we elevate the quality of test code? This thesis presents TestSmellDescriber, a tool with the ability to generate descriptions detailing potential problems in test cases, which are collected by conducting a Test Smell analysis.
    [Show full text]
  • Essential Notation for Object-Relational Mapping
    UNIVERSIDADE FEDERAL DO RIO GRANDE DO SUL INSTITUTO DE INFORMÁTICA PROGRAMA DE PÓS-GRADUAÇÃO EM COMPUTAÇÃO ALEXANDRE TORRES Essential Notation for Object-Relational Mapping Thesis presented in partial fulfillment of the requirements for the degree of Doctor in Computer Science. Prof. Dr. Renata Galante Adviser Prof. Dr. Marcelo S. Pimenta Co-adviser Porto Alegre, Abril, 2014. CIP – CATALOGAÇÃO NA PUBLICAÇÃO Torres, Alexandre Essential Notation for Object-Relational Mapping / Alexandre Torres. – 2014. 188 f.:il. Orientadora: Renata Galante. Co-orientador: Marcelo Pimenta. Tese (Doutorado) – Universidade Federal do Rio Grande do Sul, Instituto de Informática, Programa de Pós-Graduação em Computação. Porto Alegre, BR – RS, 2014. 1. Object-Relational Mapping. 2. Model-Driven Development. 3. Patterns. 4. UML. 5. Relational Model. I. Galante, Renata, orient. II. Pimenta, Marcelo, coorient. III. Título. UNIVERSIDADE FEDERAL DO RIO GRANDE DO SUL Reitor: Prof. Carlos Alexandre Netto Vice-Reitor: Prof. Rui Vicente Oppermann Pró-Reitor de Pós-Graduação: Prof. Vladimir Pinheiro do Nascimento Diretor do Instituto de Informática: Prof. Luís da Cunha Lamb Coordenador do PPGC: Prof. Luigi Carro Bibliotecária-Chefe do Instituto de Informática: Beatriz Regina Bastos Haro Essential Notation for Object-Relational Mapping ABSTRACT This thesis presents the Essential Notation for Object-Relational Mapping (ENORM), a general purpose notation that represents structural concepts of Object- Relational Mapping (ORM). The goal of ENORM is to facilitate the design by the clear application of ORM patterns, document mappings with a platform independent notation, and became a repository for model-driven transformations, partial code generation, and round-trip engineering tools. ENORM is a UML profile based notation, designed to represent patterns within a domain modeling logic, with objects of the domain incorporating both behavior and data.
    [Show full text]
  • EJB 3 - Ein Blick Über Den Tellerrand
    EJB 3 - Ein Blick über den Tellerrand Heiko W. Rupp <[email protected]> Agenda • Abriss des Standards • Blick auf vorhandene Implementierungen • Erfahrungen aus der Praxis • Verlosung der 2 Bücher (c) 2007 Heiko W. Rupp Agenda • Abriss des Standards • Blick auf vorhandene Implementierungen • Erfahrungen aus der Praxis • Verlosung der 2 Bücher (c) 2007 Heiko W. Rupp Abriss des Standards (1) • Zurück zum POJO - Keine komplexen Interfaces • Konvention statt Konfiguration - Sinnvolle Voreinstellungen • Metadaten am Code (c) 2007 Heiko W. Rupp Abriss des Standards (2) • Session Beans - @Stateful - @Stateless • Message-Driven Beans - @MessageDriven • Entity Beans - Neu als JPA (c) 2007 Heiko W. Rupp JPA • Java Persistence API - Sehr ähnlich Hibernate / JDO • Layer über Persistenz-Provider • Ansprache über EntityManager • Auch in Java SE nutzbar (c) 2007 Heiko W. Rupp Konsequenzen • Schnellere Entwicklung - Weniger Code - Kein synchron-halten vieler Artefakte • Schnelleres und besseres Testen - Entity Beans in UnitTests! (c) 2007 Heiko W. Rupp Konsequenzen • Schnellere Entwicklung - Weniger Code - Kein synchron-halten vieler Artefakte • Schnelleres und besseres Testen - Entity Beans in UnitTests! - Session Beans in UnitTests !! (c) 2007 Heiko W. Rupp Agenda • Abriss des Standards • Blick auf vorhandene Implementierungen • Erfahrungen aus der Praxis • Verlosung der 2 Bücher (c) 2007 Heiko W. Rupp Implementierungen • Zu Unterscheiden: - EJB 3 vollständig • Java EE zertifiziert • (Noch) nicht zertifiziert - Nur JPA (c) 2007 Heiko W. Rupp Implementierungen • Java EE zertifiziert - http://java.sun.com/javaee/overview/ compatibility.jsp • Bea Weblogic 10 Tech Preview • Kingdee Apusic • SAP Netweaver Java EE 5 Edition • Sun Java Enterprise Server Platform Edition 9 • Tmax Soft JEUS 6 (c) 2007 Heiko W. Rupp Implementierungen (2) • Server, nicht zertifiziert - Red Hat JBoss AS • 4.0.5 + EJB 3 • 5.0.0 Alpha • Embedded EJB 3 - ObjectWeb Easy Beans - Sun Glassfish („Referenz“) (c) 2007 Heiko W.
    [Show full text]
  • By Andrus Adamchik @Andrus a About Me • Open Source Developer: ORM, Dependency Injection, REST, No- Container
    Apache Cayenne a Java ORM Alternative by Andrus Adamchik @andrus_a About Me • Open source developer: ORM, dependency injection, REST, no- container. • Member and VP of the Apache Software Foundation. • Run a company called ObjectStyle. What is Apache Cayenne • A mature user-friendly Java ORM with modeling tools. • An alternative object persistence philosophy. • Community-driven. Dozens of contributors, 8 PMC members. Apache: Community over Code • Apache Foundation focuses on project communities. • Meritocracy - anyone can earn a vote by contributing. • Clear license policies and traceable code origins. • Successful model: hosts or incubates more than 350 projects. Demo - Art Exhibits Cayenne vs. JPA / Hibernate Generated SQL • Hibernate: select artist0_.id as id1_0_, artist0_.name as name2_0_ from ARTIST artist0_ • Cayenne: SELECT t0.name, t0.id FROM ARTIST t0 Transactions • JPA/Hibernate were born in the EJB world. Both are transaction- centric. • Cayenne transactions are implicit. • Cayenne is not connected to DB between JDBC operations. ➡ Better connection pool reuse and no user TX code. ObjectContext • Vaguely analogous to SessionFactory / EntityManager. • Better analogy might be Git - ObjectContext is an object holder disconnected from DB. • Not holding any open resources (connections, etc.), doesn't need to be closed. • Allows to expand object graph lazily and transparently, as relationships are traversed in the code. ObjectContext Avoids This: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: h.Artist.paintings, could not initialize proxy - no Session at o.h.c.i.AbstractPersistentCollection .throwLazyInitializationException (AbstractPersistentCollection.java:582) Persistent Object • Mapping is separated from objects. No pollution with ORM annotations. • Framework-provided superclass - CayenneDataObject. • No class enhancement or dynamic proxies.
    [Show full text]
  • JPA Configuration, Issues, Pitfalls
    JDBC vs ORM Comparing INGRES-based data access logic Monica Kurth Outline . What is JDBC? . What is ORM? . Advantages and Disadvantages of using JDBC vs ORM . JDBC Configuration, Issues, Pitfalls . JPA Configuration, Issues, Pitfalls . Sample application . Questions? Confidential — © 2008 Ingres Corporation Slide What is JDBC? . Short for Java Database Connectivity . Java API that enables Java programs to execute SQL statements and interact with any SQL-compliant database. Possible to write a single database application that can run on different platforms and interact with different DBMS. Similar to ODBC, but designed specifically for Java Confidential — © 2008 Ingres Corporation Slide Pros and Cons of JDBC Clean and simple SQL processing Good performance with large amounts of data. Large programming overhead Transactions and concurrency must be hand-coded in Awkward way of obtaining and handling connections and the resulting errors SQL Logging is not provided and must be coded specifically (INGRES provides utility!) Confidential — © 2008 Ingres Corporation Slide JDBC Configuration Required Parameters Vendor - connect using the Ingres JDBC driver Hostname - the name or IP address Port - the port to connect to, default is II7 Database - the name of the database User - the user name to connect with Password - the password Confidential — © 2008 Ingres Corporation Slide JDBC Code Sample [more code] //Instantiate Driver class Class.forName("com.ingres.jdbc.IngresDriver"); //Create Connection Connection connection = DriverManager.getConnection( jdbc:ingres://localhost:II7/demodb, USERNAME, PASSWORD); //Create SQL statement Statement statement = connection.createStatement(); //Execute SQL statement.execute(“SELECT * FROM Employee”); //Tidy up resources – this will need some exception catching etc… statement.close(); connection.close(); [more code] Confidential — © 2008 Ingres Corporation Slide JDBC Configuration – Notes .
    [Show full text]