2004 IR Help Posted August 20, 2006 Share Posted August 20, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now