Jump to content
Changes to the Jaspersoft community edition download ×

2004 IR Help

Recommended Posts

By: barnye - barnye

Hibernate

2005-02-05 10:57

I have problem with JasperReport and Hibernate...

I am using the custom data source (CustomersDataSourceProvider) which is implemented to return connection of bean CustomerImpl...

 

CustomerImpl has the atribute primaryAddress and getter getPrimaryAddress which returns Instance of AddressImpl. But I have problem with accessing to the instance AddressImpl..

 

I'm using this:

 

$F{primaryAddress}.toString() - ok, this print AddressImpl@342212

 

but I cannot access the method of this object becase it is casted to Object. When I'am trying to cast to AddressImpl (or Address) a got ClassCastException

 

here is the code:

((AddressImpl) $F{primaryAddress}).toString()

 

 

please help me...

 

Mila

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...