I have a class with nested object. I'm using Bean Collection DataSource.
Here is the class of the Transaction bean
public class Transaction { private Long idTransaction; private String observation; private String observation2; private DirectionOfTransaction directionOfTransaction; private LocalDateTime dateTime; private Account account; private User user; private TypeOfTransaction typeOfTransaction; public Long getIdTransaction() { return idTransaction; } public void setIdTransaction(Long idTransaction) { this.idTransaction = idTransaction; } public String getObservation() { return observation; } public void setObservation(String observation) { this.observation = observation; } public String getObservation2() { return observation2; } public void setObservation2(String observation2) { this.observation2 = observation2; } public DirectionOfTransaction getDirectionOfTransaction() { return directionOfTransaction; } public void setDirectionOfTransaction(DirectionOfTransaction directionOfTransaction) { this.directionOfTransaction = directionOfTransaction; } public LocalDateTime getDateTime() { return dateTime; } public void setDateTime(LocalDateTime dateTime) { this.dateTime = dateTime; } public Account getAccount() { return account; } public void setAccount(Account account) { this.account = account; } public User getUser() { return user; } public void setUser(User user) { this.user = user; } public TypeOfTransaction getTypeOfTransaction() { return typeOfTransaction; } public void setTypeOfTransaction(TypeOfTransaction typeOfTransaction) { this.typeOfTransaction = typeOfTransaction; }}[/code]
I have problem in JasperSoft community edition. first of all insert my class folder with in class path.
Get Transaction class properties, when i drag & drop field with type like Strin, bigDecimal, to the details section every thing works fine.
But when i drag and drop field declared with custom types like DirectionOfTransaction, Account ..etc (My own class), Japsersoft sutdio can't place them in the details section.
I have also create a variable using some with conditional expression and place in the detail section i get an error:
Generate report with nested object problem
in Products
Posted
I have a class with nested object. I'm using Bean Collection DataSource.
Here is the class of the Transaction bean
I have problem in JasperSoft community edition. first of all insert my class folder with in class path.
Get Transaction class properties, when i drag & drop field with type like Strin, bigDecimal, to the details section every thing works fine.
But when i drag and drop field declared with custom types like DirectionOfTransaction, Account ..etc (My own class), Japsersoft sutdio can't place them in the details section.
I have also create a variable using some with conditional expression and place in the detail section i get an error:
Here is hte JRXML file:
and her is the code for java program: