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: NH automatically considering an record status flag
PostPosted: Mon Sep 04, 2006 8:48 am 
Newbie

Joined: Mon Sep 04, 2006 8:26 am
Posts: 2
Hibernate version:1.0.2.0

Hi,

I'm new to this forum and using NH, - and I can say, that I am highly impressed by the job, NH does to the DB.

My problem:
I do not want to delete a record physically, so I intent to implement a column named recordstatus to any table, where 0 means "deleted" an 1 means "activ" record.

How I can say NH at a central point, not to work with records with an recordstatus equal to 0?

I'd like to use the powerfull ability of "lazy loading" collections furthermore. On the other hand, NH should use the WHERE-condition in the automatically created SQL-Statement.

I tried the where="..."-condition, which can(?) be used in the SET section of a collection. No success. I read about NH3.x for java, where this works fine?!?!?

Does someone has a hint for me?
Thank you and best regards
Markus


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.