# techyscientist/enterpriselms architecture

> Architecture diagram of the GitHub repository techyscientist/enterpriselms, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/techyscientist/enterpriselms
- Repository: https://github.com/techyscientist/enterpriselms

## Overview

EnterpriseLMS is a Java library-management application. Staff and patrons use its web interface for catalog search, circulation, patron administration, holds, and fines; servlet handlers coordinate those actions with EJB services and persistence DAOs. The sampled checkout handler shows barcode validation, patron and copy lookup, checkout-limit and hold checks, and checkout updates. The README names no further capabilities, so additional stages are inferred from servlet names in the tree; their internal wiring is not shown. The sampled entity annotations establish relational persistence, but the database configuration was not inspected.

Main entry points: [`Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet/CheckOutServlet.java`](https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet/CheckOutServlet.java) (Checkout), [`Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/implementations/BookDaoImpl.java`](https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/implementations/BookDaoImpl.java) (Book DAO), [`Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence`](https://github.com/techyscientist/enterpriselms/tree/master/Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence) (Library records), [`Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet/CheckInServlet.java`](https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet/CheckInServlet.java) (Check-in)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web workflows"]
  node_catalog["Catalog search"]
  node_circulation["Checkout"]
  node_checkin["Check-in"]
  node_patrons["Patron management"]
  node_holds["Hold management"]
  node_fines["Fine management"]
  node_authentication["Sign-in and status"]
end

subgraph group_services["EJB services"]
  node_barcode["Barcode service"]
end

subgraph group_persistence["Persistence"]
  node_bookdao["Book DAO<br/>[BookDaoImpl.java]"]
  node_userdao["User DAO<br/>[UserDaoImpl.java]"]
  node_titledao["Title DAO<br/>[TitleDaoImpl.java]"]
  node_holddao["Hold DAO<br/>[HoldDaoImpl.java]"]
  node_finedao["Fine DAO<br/>[FineDaoImpl.java]"]
  node_entities["Library records"]
  node_database[("Relational database")]
end

node_staff(("Staff or patron"))

node_staff -->|"searches"| node_catalog
node_staff -->|"requests checkout"| node_circulation
node_staff -->|"requests check-in"| node_checkin
node_staff -->|"manages patrons"| node_patrons
node_staff -->|"manages holds"| node_holds
node_staff -->|"manages fines"| node_fines
node_staff -->|"signs in"| node_authentication
node_circulation -->|"validates barcodes"| node_barcode
node_circulation -->|"reads and updates copies"| node_bookdao
node_circulation -->|"looks up patron"| node_userdao
node_catalog -->|"searches copies"| node_bookdao
node_checkin -->|"updates copies"| node_bookdao
node_checkin -->|"checks holds"| node_holddao
node_bookdao -->|"persists copy records"| node_entities
node_holddao -->|"persists hold records"| node_entities
node_finedao -->|"persists fine records"| node_entities
node_entities -->|"maps records"| node_database

click node_catalog "https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet/CatalogSearchServlet.java"
click node_circulation "https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet/CheckOutServlet.java"
click node_checkin "https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet/CheckInServlet.java"
click node_patrons "https://github.com/techyscientist/enterpriselms/tree/master/Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet"
click node_holds "https://github.com/techyscientist/enterpriselms/tree/master/Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet"
click node_fines "https://github.com/techyscientist/enterpriselms/tree/master/Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet"
click node_authentication "https://github.com/techyscientist/enterpriselms/tree/master/Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet"
click node_barcode "https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/implementation/BarcodeBeanImpl.java"
click node_bookdao "https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/implementations/BookDaoImpl.java"
click node_userdao "https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/implementations/UserDaoImpl.java"
click node_titledao "https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/implementations/TitleDaoImpl.java"
click node_holddao "https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/implementations/HoldDaoImpl.java"
click node_finedao "https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/implementations/FineDaoImpl.java"
click node_entities "https://github.com/techyscientist/enterpriselms/tree/master/Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_catalog,node_circulation,node_checkin,node_patrons,node_holds,node_fines,node_authentication toneBlue
class node_barcode toneAmber
class node_bookdao,node_userdao,node_titledao,node_holddao,node_finedao,node_entities,node_database toneMint
class node_staff toneIndigo
```

## Components

### Web workflows

- [Catalog search](https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet/CatalogSearchServlet.java): `Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet/CatalogSearchServlet.java`
- [Checkout](https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet/CheckOutServlet.java): `Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet/CheckOutServlet.java`
- [Check-in](https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet/CheckInServlet.java): `Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet/CheckInServlet.java`
- [Patron management](https://github.com/techyscientist/enterpriselms/tree/master/Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet): `Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet`
- [Hold management](https://github.com/techyscientist/enterpriselms/tree/master/Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet): `Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet`
- [Fine management](https://github.com/techyscientist/enterpriselms/tree/master/Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet): `Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet`
- [Sign-in and status](https://github.com/techyscientist/enterpriselms/tree/master/Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet): `Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet`

### EJB services

- [Barcode service](https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/implementation/BarcodeBeanImpl.java): `Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/implementation/BarcodeBeanImpl.java`

### Persistence

- [Book DAO](https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/implementations/BookDaoImpl.java): `Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/implementations/BookDaoImpl.java`
- [User DAO](https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/implementations/UserDaoImpl.java): `Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/implementations/UserDaoImpl.java`
- [Title DAO](https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/implementations/TitleDaoImpl.java): `Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/implementations/TitleDaoImpl.java`
- [Hold DAO](https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/implementations/HoldDaoImpl.java): `Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/implementations/HoldDaoImpl.java`
- [Fine DAO](https://github.com/techyscientist/enterpriselms/blob/master/Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/implementations/FineDaoImpl.java): `Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/implementations/FineDaoImpl.java`
- [Library records](https://github.com/techyscientist/enterpriselms/tree/master/Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence): `Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence`
- **Relational database**

### Other components

- **Staff or patron**

## Connections

- Staff or patron → Catalog search: searches
- Staff or patron → Checkout: requests checkout
- Staff or patron → Check-in: requests check-in
- Staff or patron → Patron management: manages patrons
- Staff or patron → Hold management: manages holds
- Staff or patron → Fine management: manages fines
- Staff or patron → Sign-in and status: signs in
- Checkout → Barcode service: validates barcodes (evidence: `Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet/CheckOutServlet.java`)
- Checkout → Book DAO: reads and updates copies (evidence: `Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet/CheckOutServlet.java`)
- Checkout → User DAO: looks up patron (evidence: `Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet/CheckOutServlet.java`)
- Catalog search → Book DAO: searches copies (evidence: `Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet/CatalogSearchServlet.java`)
- Check-in → Book DAO: updates copies (evidence: `Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet/CheckInServlet.java`)
- Check-in → Hold DAO: checks holds (evidence: `Base/libraryms-web/src/main/java/com/johnnyconsole/libraryms/servlet/CheckInServlet.java`)
- Book DAO → Library records: persists copy records (evidence: `Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/implementations/BookDaoImpl.java`)
- Hold DAO → Library records: persists hold records (evidence: `Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/implementations/HoldDaoImpl.java`)
- Fine DAO → Library records: persists fine records (evidence: `Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/implementations/FineDaoImpl.java`)
- Library records → Relational database: maps records (evidence: `Base/libraryms-ejb/src/main/java/com/johnnyconsole/libraryms/persistence/Book.java`)
