Guys,
I'm using Firebird 1.5, Hibernate 2.1 and JasperReports.
I have problems when I need to get a list attribute from a class.
I got the example from
http://www.hibernate.org/79.html and I'm using the HibernateQueryResultDataSource class.
Here is the code:
public class Usuario {
private String nome;
private String senha;
private Unidade unidade;
private List listaPerfil = new ArrayList();
.
.
.
This is the hibernate query:
List listaUsuario = ses.find("select u.nome, u.senha, u.unidade.nome, u.listaPerfil from Usuario as u");
I'm mapping the fields like this:
String[] fields = {"nomeUsuario","senhaUsuario","nomeUnidade", ???};
??? = where the listaPerfil field was supposed to be.
The problem is:
I have a master report and a subreport in which the fields from the listaPerfil list should be.
So, the master report will have the u.nome, u.senha and u.unidade.nome fields and the subreport will have the fields from the list.
I don't know HOW i can fill this subreport with the listaPerfil values.
Thanks in advance.
Marcelo.