-->
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.  [ 2 posts ] 
Author Message
 Post subject: hibernate vs. the mock pojo
PostPosted: Tue Jan 11, 2005 6:46 pm 
Newbie

Joined: Tue Jan 11, 2005 6:28 pm
Posts: 3
There is a PoJo class which is mapped to a PoJo table via PoJo.hbm.xml. Everything is managed by PoJoDAO and works fine. Until...

Someone writes a test case using a MockPoJo object which extends PoJo. They call PoJoDAO.save(mockPoJo) and Hibernate complains that the MockPoJo class is not mapped.

I have encountered sub-classes of mapped persistent classes before. This is the first time the sub-classing seemed legimate.

Is there an efficient way to get Hibernate to be polymorphic about this and persist the super class?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 12, 2005 7:16 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Hum, maybe we could allow that... there are probably consequences
Post a JIRA feature request on H3, I'd like to hear Gavin's opinion.

_________________
Emmanuel


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

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.