These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Persisting an interface instance?
PostPosted: Tue Jan 25, 2005 11:40 pm 
Newbie

Joined: Tue Jan 18, 2005 11:13 pm
Posts: 19
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.