{"id":19514755,"url":"https://github.com/neeballearningpvtltd/excel-to-pojo","last_synced_at":"2025-04-26T06:30:39.078Z","repository":{"id":121980467,"uuid":"112064105","full_name":"NeebalLearningPvtLtd/Excel-to-POJO","owner":"NeebalLearningPvtLtd","description":"This utility is used for parsing excel sheets data into java object used for Inventory Management System","archived":false,"fork":false,"pushed_at":"2019-01-01T11:16:28.000Z","size":31,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-04T08:22:25.683Z","etag":null,"topics":["apache","apache-poi","converter","excel","excelreader","java","mapper","poi","pojo"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NeebalLearningPvtLtd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-11-26T07:28:08.000Z","updated_at":"2023-03-10T11:12:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"dca4ff0f-580e-4502-bc60-3373fb59cc0b","html_url":"https://github.com/NeebalLearningPvtLtd/Excel-to-POJO","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeebalLearningPvtLtd%2FExcel-to-POJO","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeebalLearningPvtLtd%2FExcel-to-POJO/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeebalLearningPvtLtd%2FExcel-to-POJO/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeebalLearningPvtLtd%2FExcel-to-POJO/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NeebalLearningPvtLtd","download_url":"https://codeload.github.com/NeebalLearningPvtLtd/Excel-to-POJO/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250943889,"owners_count":21511644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["apache","apache-poi","converter","excel","excelreader","java","mapper","poi","pojo"],"created_at":"2024-11-10T23:37:29.674Z","updated_at":"2025-04-26T06:30:39.072Z","avatar_url":"https://github.com/NeebalLearningPvtLtd.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Excel to POJO\n\n\n#### Description\n\u003eThis is utility used for parsing excel sheets data into java object used for Inventory Management System [here](https://github.com/NeebalLearningPvtLtd/InventoryManagementSystem) \n\n#### Dependencies\n\u003e Jackson for json format to java format maven [link](https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core) .\n\n\u003e Apache Poi for .xlsx ( 2007 and above excel formats ) maven [link](https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml) and for .xls support you need to add maven [link](https://mvnrepository.com/artifact/org.apache.poi/poi) .\n\n### Note\n\n\u003e It can used for both .xls and .xslx file format together using [this](https://stackoverflow.com/a/11972571/8413082) .\n\n#### Usage\n*\n  *  Call [parseFile](https://github.com/NeebalLearningPvtLtd/Excel-to-POJO/blob/master/FileParser.java) method of FileParser which takes excel File and [json](https://github.com/NeebalLearningPvtLtd/Excel-to-POJO/blob/master/format.json) format file of how the data will be mapped in POJO \n\n    ```java\n    \n      File excelFile =new File('Absolute PATH of excel file');\n\n      File JSONFormatFile =new File('Absolute PATH of JSON format file');\n\n      FileParser\u003cInventory\u003e fileParser = new FileParser\u003c\u003e(excelFile , JSONFormatFile ) ;\n\n      Map\u003cClass \u003c ? extends Inventory \u003e ,List\u003cInventory \u003e\u003e map = fileParser.parseFile();\n\n    ```\n\n  * It returns Map\u003c Class\u003c? extends T\u003e , list\u003c? extends T\u003e \u003e of POJO's\n\n     * Key for the Map is the Class of the POJO . \n     * Value is List of all the POJO's that are read from row of corresponding sheets\n\n     **Note** \n     \u003e T in my case is Inventory class which is common abstract class for all my POJO's .\n    \n\n *  **Make** sure that name of [SheetFormat](https://github.com/NeebalLearningPvtLtd/Excel-to-POJO/blob/master/format/SheetFormat.java)'s name and POJO Class Name , the [ColumnFormat](https://github.com/NeebalLearningPvtLtd/Excel-to-POJO/blob/master/format/ColumnFormat.java)'s name and POJO's Fields name matches **exactly**  , else SheetParsingException and RowParsingException is raised respectively .\n  \n  \n *  Excel Sheets can be read from any index  ( 0 based ) just provide index of the  Sheet in JSONFormatFile like [this](https://github.com/NeebalLearningPvtLtd/Excel-to-POJO/blob/master/format.json)\n \n \n#### License\n\u003eMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneeballearningpvtltd%2Fexcel-to-pojo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneeballearningpvtltd%2Fexcel-to-pojo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneeballearningpvtltd%2Fexcel-to-pojo/lists"}