{"id":20477807,"url":"https://github.com/adminltr/java-library-crud","last_synced_at":"2026-04-16T23:02:59.599Z","repository":{"id":200408060,"uuid":"705409593","full_name":"adminLTR/Java-Library-CRUD","owner":"adminLTR","description":"Basic CRUD Java library system","archived":false,"fork":false,"pushed_at":"2023-10-16T04:09:22.000Z","size":380,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T14:49:38.482Z","etag":null,"topics":["crud","java","mvc","mysql","netbeans","swing"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adminLTR.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-15T23:48:50.000Z","updated_at":"2024-08-25T01:15:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa3a6962-1784-4c42-a7b8-6fea4c478271","html_url":"https://github.com/adminLTR/Java-Library-CRUD","commit_stats":null,"previous_names":["ltprograms/java-library-crud","adminltr/java-library-crud"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adminLTR/Java-Library-CRUD","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adminLTR%2FJava-Library-CRUD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adminLTR%2FJava-Library-CRUD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adminLTR%2FJava-Library-CRUD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adminLTR%2FJava-Library-CRUD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adminLTR","download_url":"https://codeload.github.com/adminLTR/Java-Library-CRUD/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adminLTR%2FJava-Library-CRUD/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31907727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crud","java","mvc","mysql","netbeans","swing"],"created_at":"2024-11-15T15:33:20.542Z","updated_at":"2026-04-16T23:02:59.573Z","avatar_url":"https://github.com/adminLTR.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java-Library-CRUD\nBasic CRUD Java library system example using \u003cb\u003eJava Swing\u003c/b\u003e and \u003cb\u003eMySql\u003c/b\u003e\n\u003cp\u003e \n    \u003cb\u003eAuthor: \u003c/b\u003eLTprograms\n\u003c/p\u003e\n\n\u003cimg src=\"./static/app.png\"/\u003e\n\n\u003ch2\u003eDocumentation\u003c/h2\u003e\n\n\u003ch3\u003eIntallations\u003c/h3\u003e\n\u003ch4\u003eJava installation\u003c/h4\u003e\n\u003cp\u003e\nTo start using this app, you should first have installed java on your computer, you\ncan install the JDK and JRE using these links: \u003c/br\u003e\nJDK: \u003ca target=\"_blank\" href=\"https://www.oracle.com/pe/java/technologies/downloads/\"\u003ehttps://www.oracle.com/pe/java/technologies/downloads/\u003c/a\u003e\u003c/br\u003e\nJRE: \u003ca target=\"_blank\" href=\"https://www.java.com/es/download/ie_manual.jsp\"\u003ehttps://www.java.com/es/download/ie_manual.jsp\u003c/a\u003e\n\u003c/p\u003e\n\u003cp\u003e\nJDK 20 and JRE 8 were used to build this app, in case you have any version problem try to download these software versions or instead try to update the version in configuration files\n\u003c/p\u003e\n\n\u003ch4\u003eNetBeans installation\u003c/h4\u003e\n\u003cp\u003e\nThis app was built using NetBeans IDE 18, but you can use any other program. Keep in mind some configuration files might cause some issues. However, you can download NetBeans using this link:\u003c/br\u003e\nNetBeans IDE: \u003ca target=\"_blank\" href=\"https://netbeans.apache.org/\"\u003ehttps://netbeans.apache.org/\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch4\u003eXAMPP installation\u003c/h4\u003e\n\u003cp\u003e\nIt was used MySQL as the DBMS (Data Base Managment System), but you can use any other if you want, but remember that every DBMS has its own driver to work with java, so be sure you download the correct driver in the next step. In this case, I used XAMPP 8.0.28, but there is no problem if you download any other version.\u003c/br\u003e\nXAMPP: \u003ca target=\"_blank\" href=\"https://www.apachefriends.org/download.html\"\u003ehttps://www.apachefriends.org/download.html\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch4\u003eJDBC installation\u003c/h4\u003e\n\u003cp\u003e\nAs I mentioned before, you must install the JDBC driver to work with databases, and each DBMS has its own JDBC version, so be sure you install the correct driver if you are using any other DBMS. If you're following me, you can install MySQL JDBC driver in this link, I'm using 5.1.49 version:\u003c/br\u003e\nJDBC: \u003ca target=\"_blank\" href=\"https://downloads.mysql.com/archives/get/p/3/file/mysql-connector-java-5.1.49.zip\"\u003ehttps://downloads.mysql.com/archives/get/p/3/file/mysql-connector-java-5.1.49.zip\u003c/a\u003e\n\u003c/p\u003e\n\u003cp\u003e\nOnce you have installed it, you should include the \u003ci\u003e.jar\u003c/i\u003e file in \u003ci\u003eLibraries\u003c/i\u003e folder as in the image:\n\u003c/p\u003e\n\u003cimg src=\"./static/jdbc.png\"/\u003e\n\n\u003cp\u003e\nThat's all installation you have to do, if you arrive to this point, congratulations, you can keep reading the documentation if you want. In case you had problems in the previous steps, you can contact me or follow any tutorial on YouTube. Good Luck!\n\u003c/p\u003e\n\n\u003ch3\u003eSQL Script\u003c/h3\u003e\n\u003cp\u003e\nIn the main folder, you will find 'library.sql' file, you can execute it in your DBMS or export it using the export function and selecting this file.\n\u003c/p\u003e\n\n\n\u003ch3\u003eFiles and Folders\u003c/h3\u003e\n\u003cp\u003e\nI'm using MVC (Model View Controller) architecture, so you will find 3 packages in src folder\n\u003c/p\u003e\n\u003cimg src=\"./static/mvc.png\"/\u003e\n\n\u003ch4\u003eModel\u003c/h4\u003e\n\u003cp\u003e\nHere are two classes, \u003ci\u003eBook\u003c/i\u003e and \u003ci\u003eJConnection\u003c/i\u003e, they are the entities used in this small project\n\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cb\u003eBook: \u003c/b\u003eClass with some attributes such as name(String), author(String), stock(int), category(String), etc. It has its Constructors and getters/setters\u003c/li\u003e\n\u003cli\u003e\u003cb\u003eJConnection: \u003c/b\u003eClass to create the connection between the database and the java app. It has some attributes such as user and password, which are the credentials to link the DDBB with our program, in case you have other credentials, just change the variable values to your own ones\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch4\u003eView\u003c/h4\u003e\n\u003cp\u003e\nIt has just one JFrame class to build the GUI (Graphical User Interface), you can adjust the design up to you, or add some other buttons or functionalities.\n\u003c/p\u003e\n\n\u003ch4\u003eController\u003c/h4\u003e\n\u003cp\u003e\nIt's got only one class named Controller, that links the view with the models and set buttons functionalities\n\u003c/p\u003e\n\n\u003ch4\u003eApp file\u003c/h4\u003e\n\u003cp\u003e\nThis is the main class, in case you had any doubts, you can contact me, I left some comments in the code anyway.\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadminltr%2Fjava-library-crud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadminltr%2Fjava-library-crud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadminltr%2Fjava-library-crud/lists"}