{"id":15350057,"url":"https://github.com/takezoe/xlsbeans","last_synced_at":"2025-04-15T02:36:59.624Z","repository":{"id":12846218,"uuid":"15521994","full_name":"takezoe/xlsbeans","owner":"takezoe","description":"Java library for mapping Excel sheets to POJO","archived":false,"fork":false,"pushed_at":"2022-06-29T16:58:10.000Z","size":242,"stargazers_count":46,"open_issues_count":4,"forks_count":17,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-28T15:01:38.694Z","etag":null,"topics":["excel","java"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takezoe.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}},"created_at":"2013-12-30T06:30:41.000Z","updated_at":"2023-09-08T16:44:23.000Z","dependencies_parsed_at":"2022-08-28T15:33:50.143Z","dependency_job_id":null,"html_url":"https://github.com/takezoe/xlsbeans","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takezoe%2Fxlsbeans","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takezoe%2Fxlsbeans/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takezoe%2Fxlsbeans/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takezoe%2Fxlsbeans/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takezoe","download_url":"https://codeload.github.com/takezoe/xlsbeans/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248995101,"owners_count":21195497,"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":["excel","java"],"created_at":"2024-10-01T11:56:54.604Z","updated_at":"2025-04-15T02:36:59.157Z","avatar_url":"https://github.com/takezoe.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"XLSBeans [![Build Status](https://travis-ci.org/takezoe/xlsbeans.svg?branch=master)](https://travis-ci.org/takezoe/xlsbeans) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.takezoe/xlsbeans/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.takezoe/xlsbeans)\n========\n\nXLSBeans is a Java library for mapping Excel sheets to POJO.\n\n\n## Setup\n\nTo use XLSBeans, add the following dependency to your pom.xml:\n\n```xml\n\u003cdependencies\u003e\n  \u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.takezoe\u003c/groupId\u003e\n    \u003cartifactId\u003exlsbeans\u003c/artifactId\u003e\n    \u003cversion\u003e1.2.7\u003c/version\u003e\n  \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\n## Getting Started\n\nFor example, here is one Excel sheet.\n\n![Sample Excel](excel.png)\n\nMap this Excel sheet to POJO using ```@HorizontalRecords``` and ```@LabelledCell```.\n\n```java\n@Sheet(name=\"Users\")\npublic class UserList {\n\n  @LabelledCell(label=\"Title\", type=LabelledCellType.Right)\n  public String title;\n\n  @HorizontalRecords(tableLabel=\"User list\", recordClass=User.class)\n  public List\u003cUser\u003e users;\n\n}\n```\n\nAnd the following is the record class. Properties of the record class is mapped to columns by ```@Column```.\n\n```java\npublic class User {\n\n  @Column(columnName=\"ID\")\n  public int id;\n\n  @Column(columnName=\"Name\")\n  public String name;\n\n  @Column(columnName=\"Gender\", merged=true)\n  public String gender;\n\n}\n```\n\nYou can get the mapped POJO using ```XLSBeans#load()``` like following:\n\n```java\nUserList userList = (UserList)new XLSBeans().load(\n  new FileInputStream(\"example.xls\"), UserList.class);\n```\n\n## Documentation\n\nSee more details in http://amateras.sourceforge.jp/site/xlsbeans/howtouse.html (in Japanese)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakezoe%2Fxlsbeans","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakezoe%2Fxlsbeans","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakezoe%2Fxlsbeans/lists"}