Giter VIP home page Giter VIP logo

jdbc.hw1's Introduction

JDBC HW1

1 DB Installation

  1. Download and install H2 database
  2. Create database store
  3. Create user store_user with any password
  4. Include gradle dependency for H2 JDBC driver

2 Store Schema

Design database model that represents store. There should be following tables:

  1. category: id, title, description
  2. property: name, value. Please be sure that there is no way to create 2 properties with the same name and value.
  3. item: id, title, description, price
  4. catalog: id, name

3 Store Relations

Create relations between tables.

  1. One item should contain many properties. Many items may contain the same properties.
  2. One item should be related to many categories. Many items may be related to many categories.
  3. One item may be related to many catalogs. One catalog may contains many items.

4 Demo class

Create demo class, that creates:

  1. Several items.
  2. Several categories.
  3. Several catalogs.
  4. Several properties.
  5. Link items to catalogs, categories, properties.
  6. Retrieve information about all catalogs, with all items in this catalog. Note that properties and categories of all items should be filled in.

NOTE: All SQL statements for user, schema creation should be in the resource folder as SQL file. Also feel free to extend or modify models with any additional methods and fields if needed.

jdbc.hw1's People

Contributors

didva avatar xsavikx 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.