Comments (5)
Hi @surimogili ,
Does each address exist in a different column?
Name | Adress 1 | Address 2 |
---|---|---|
Joe | address1 | address2 |
Paul | address1 | $address2 |
from poiji.
Yes, exactly. Not only address, we have more such repetitive columns.
from poiji.
If your excel columns are fixed, you can create an entity class like below:
public class Person {
@ExcelCell(0)
private String name;
@ExcelCell(1)
private String address1;
@ExcelCell(2)
private String address2;
}
If the columns are not fixed,
public class Person {
@ExcelCellName("Name")
private String name;
@ExcelCellName("Address 1")
private String address1;
@ExcelCellName("Address 2")
private String address2;
}
from poiji.
No, what I want exactly is
Inside Person, I have list of address objects. For example below are the column names
Name, address1, city1, state1, pincode1, address2, city2, state2, pincode2;
My Model class will look like this
Person
{
String name;
List
}
In address class I should have like this
Address
{
String address;
String city;
String state;
String pincode;
}
from poiji.
poiji doesn't support such approach @surimogili
from poiji.
Related Issues (20)
- Stream reading HOT 3
- [FEATURE] Pojo to Excel HOT 1
- Cannot get a STRING value from a NUMERIC cell HOT 1
- Potential IAE with 4.1.1 due to deprecation fix HOT 3
- data not getting mapped for xlsx file to pojo object HOT 2
- Blanks in Excel cells are always parsed into null values when .preferNullOverDefault(true) is used HOT 2
- Reading Excel With japanese character, that include phonetic text HOT 5
- Year Issue HOT 13
- com.poiji.exception.PoijiInstantiationException: Cannot create a new instance of aadhar.StudentInfo HOT 2
- When I set up headerCount with 0, @ExcelUnknownCells does not parse correctly HOT 5
- How can I ignore external workbook references in formula HOT 18
- How can I get correct date time from sheet HOT 7
- Hi can u help for the attached excel is it possible to convert it as pojo ? HOT 2
- Error "FATAL XMLHelper : -1: -1: Premature end of file" when parsing a file. HOT 5
- Empty row on parsing. HOT 3
- Regex Expression support for column name(s) HOT 1
- Expose details of PoijiRowSpecificException HOT 6
- Improve mandatoryCell behavior for opened sheets HOT 12
- Unable to Retrieve the values from excel sheet properly HOT 3
- Vulnerabilities on Transitive Dependencies in Commons Compress 1.25 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poiji.