tenwit wrote:
The base exception is a ClassCastException in BaseEntity.getId(). Is there anything in that code more complex than "return id;"? Is id not a String? What are the various mappings that you've left out: WasteStream and whatever class its bag contains? Do they all have the same type (String) for their id?
Another possibility for this kind of exception is that you've specified a class as the key in a mapping (via component-id + key-many-to-one, probably), but you're providing the id of an object in java code, when you should be providing the object itself.
You know what you were absolutely correct with your second guess. I'd missed it the first time round but there it is.
Thanks for the help.
Case closed