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: Incomplete inheritance and joined-subclass
PostPosted: Mon Sep 01, 2008 11:11 am 
Newbie

Joined: Wed Nov 07, 2007 2:33 pm
Posts: 2
Hi

My version of NHibernate is 1.2

I have a class B that inherits from class A, and most of the objects are instances of class A and some are instances of class B (incomplete inheritance).

For this i have adopted a joined-subclass strategy, one table for objects of class A and another table for objects of class B.

My problem is when i try to create (and persist) a object of class B based on a preexisting object of class A, i get the error "Unexpected row count: 0; expected: 1". NHibernate thinks that a record for object B already exists on table B (but only exists on table A).

Any ideas ?

Sorry for my bad english.

Desbaratizador


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.