I'm trying to persist an instance of an interface without knowing the implementation. I've created a Hibernate mapping file for the interface and the appropriate database table is created successfully. Unfortunately, when I try to persist the object, Hibernate throws the following exception:
"No persister for: {interface implementation}"
This occurrs because it attempts to look up the Persister for the specific implementation of the interface, rather then the interface itself.
Is there any way to solve this problem? If not, is there any other way to persist an instance of an interface without knowing the implementation?
Thank you for the help.
Scott
|