Code Monkey home page Code Monkey logo

vaadin-v10-issuetracker's Introduction

#Vaadin V10 - Demo application - Issuetracker

In this example we are using the database first approach. Mostly older environments will have a database or some kind of storage that you have to deal with. Here we are using a relational database as source of data.

Status

License

demo Badges Latest Stable Version Latest Version License

Build Status Coverage Status Gitter

Description

The UseCases

the Persistence Model / ERD

Modelmapping / JPA / Data Verification / jUnit

  • Check if for every DB Entry ( UserRole) the is a corresponding enum

Modules

Maven Modules for

  • persistence mapping from database to JPA Entities
  • JPA Entities to Business Pojos
  • UI infrastructure

Docker Images

DB - Postgresql

build.sh

User and Roles

Challenge

The connection between Annotations (static) and Values inside the database. For example the UserRole. Let´s assume the UserRole is modelled as ENUM. This makes it easy to use inside Code. The developer can only use existing values, refactoring will change Names or Values immediately. But how to make this coherent to the values inside the database. Mapping the Enum to a String as embedded Value of an Entity is only the half truth.

Why? The database could introduce additional values and this would not reflect into the webapp. How to deal with changes on the Sourcecode side? The embedded values inside the database are out of sync.

What could be done? Every module will provide a ValidationService. This Service should be used during application startup to make sure everything is in a valid and coherent state.

User is not an Assignee

Here in this system the User that is able to login is at the same time the Assignee. If the Module Administration and BugTracker would be independent, the would be a mapping between the class User and Assignee/Reporter/Watcher

If it is needed to be a valid System user to be an Assignee, the Module should be able to map. How to deal with System Users that are assigned to an issue but not able to login anymore?

Happy Coding.

if you have any questions: ping me on Twitter https://twitter.com/SvenRuppert or via mail.

vaadin-v10-issuetracker's People

Contributors

dve avatar svenruppert avatar

Watchers

 avatar  avatar  avatar

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.