Giter Site home page Giter Site logo

cms_mini's Introduction

Persistence in Android

Exercise 2

Welcome to the second exercise of the Persistence in Android lecture. In this exercise you will persist structured data in an SQLite database using Room.

Prerequisites

You should have already set up this project in the setup branch.

If you have already set up the project, please pull the assignment branch to get the base code for this exercise.

If you have not, please pull the assignment branch directly. For troubleshooting please refer to the ReadMe in the setup branch.

Provided Code

The provided code contains an example Customer-Relationship-Management (CRM) app. The app consists of two areas that can be accessed via a navigation drawer: Customers and Invoices. Both of these areas show a list of customers or invoices respectively. The list items can be clicked to edit the customer/invoice.

However, persistence is only implemented for adding new customers and listing them ((C)reate and (R)ead in CRUD).

Assignment

  • Implement persistence for editing customers (that's the (U)pdate in CRUD). You can find the relevant code in components/customers/CustomerDetails.kt and viewmodel/CustomerDetailsViewModel.kt.
  • Prepare persistence for invoices by creating an Entity and a DAO for invoices. Insert your code/files in places that make sense.
  • Implement persistence to adding invoices (that's the (C)reate in CRUD). You can find the relevant code in components/invoices/InvoiceDetails.kt and viewmodel/InvoiceDetailsViewModel.kt.
  • Make the list of invoices be loaded from the database. You can find the relevant code in components/invoices/InvoicesOverview.kt and viewmodel/InvoicesOverviewViewModel.kt.

Grading

Task Points
Persistence for updating customers 1.0
Invoices entity 0.5
Invoices DAO 0.5
Persistence for adding invoices 0.5
Loading invoices from database 0.5
Total 3.0

Submission

Submit your solution by zipping the project folder and uploading it under "Aufgabe 9 Persistenz & Datenbankanbindung" in the Ilias mailbox as "ex2.vorname.nachname.zip"

The assignment is due on Thursday, 16.01.2024 at 17:10. Later submissions will not be graded and receive 0 points.

cms_mini's People

Contributors

chinonsoagbo avatar markus-sevend avatar

Watchers

 avatar

Forkers

leen-t

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.