Git Product home page Git Product logo

study-project-restapi-servlets's Introduction

Hi, it's a crud api with java Servlets and Hibernate.

I used only standard libraries because the goal was to understand how to work with http requests without frameworks. For Spring, I have a separate project, it is also in my repository.

Folders

controller - it's a folder with my servlets, they are responsible for handling incoming requests.
database - here all classes about db. I used postgresSQL.
domain - My entities. No logic, only static objects
dto - for data trnsport objects
exception - some custom exceptions, i just tried to implement something look like best practice.
mapper - mappers to map entites to dto
model - it's folder for model classes, there is only custom exception's code.
service - all logic should be here, but because it's a simple demonstration app there is only crud operations.
util - it's a folder with configurations and some general classes.

Description

There are only 3 entities: User, File and Event.

Each user can have multiple files. The files are stored in postgreSQL. When interacting with files, Events are created, these events have links to the user who created them and to the file on which the action was performed. Here it would be possible to use audit functions from hibernate and event listeners, but they already exist in other projects and here, after all, the goal was to work with the Jakarta library.

study-project-restapi-servlets's People

Contributors

kocherovv avatar

Watchers

 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.