alaahong commented on issue #598:
URL: https://github.com/apache/fesod/issues/598#issuecomment-3338481672
Seems it's not a mandatory requirement as below practice? Otherwise it might
involve additional reference in process?
```
public class CompositeMultipleFieldsTest {
@Getter
@Setter
@ExcelIgnoreUnannotated
static
class Sample {
@ExcelProperty("field1")
private String field1;
@ExcelProperty("field2")
private String field2;
@ExcelProperty("field3")
private String field3;
public String getField3() {
return field1 + field2;
}
}
@Test
void test(@TempDir Path tempDir) throws Exception {
Sample sample = new Sample();
sample.setField1("A");
sample.setField2("B");
System.out.println(sample.getField3());
FastExcel.write(tempDir.resolve("composite-multiple-fields.xlsx").toFile(),
Sample.class)
.sheet("test")
.doWrite(Arrays.asList(sample));
}
}
```
<img width="425" height="253" alt="Image"
src="https://github.com/user-attachments/assets/cfb699f5-b58f-42e1-bfcd-e0bd28b28a20"
/>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]