-->
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: Hibernate INterceptor use?
PostPosted: Tue Nov 14, 2006 10:34 am 
Beginner
Beginner

Joined: Thu Apr 29, 2004 4:31 am
Posts: 42
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3.1

Hi all,
i am trying to use HIbernat ein my web application.
the concrete case is that i have an Hibernate class consisting of this fields
MYClass
- id
- productref
- location
- status
- quantity

when inserted, the value of the status field will be 0 by default.

However, when the app retrieves MYClass objects from the database, the status must be set to 1 (since the app always tries to retrieve MyClass that have status=0)

I was wondering if using an HibernateINterceptor is a good idea....

any help/comments?
thanks in advance an dregards
Marco


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.