-->
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.  [ 3 posts ] 
Author Message
 Post subject: Possible table-per-subclass bug?
PostPosted: Thu Sep 29, 2005 12:23 pm 
Senior
Senior

Joined: Thu Jun 02, 2005 5:03 pm
Posts: 135
Location: Paris
I've just run across what appears to be a bug in RC1 - I'm going to test in RC2 soon, however I thought I'd post here just in case.

I have a table-per-subclass mapping where one of the properties in the subclass allows nulls while the table that the subclass maps to does not.

When an insert is performed a record is inserted in the base class table and then an exception is thrown when attempting to insert the record into the sub-class table - as expected.

The issue is that the record in the base class table is not rolled back when the exception is thrown - is this by design or a bug?

Cheers,

Symon.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 29, 2005 1:55 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
I would say it's by design - NH assumes that entire current transaction will be rolled back in case of any problems.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 29, 2005 6:12 pm 
Senior
Senior

Joined: Thu Jun 02, 2005 5:03 pm
Posts: 135
Location: Paris
Ta Sergey!

Symon.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.