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