Hi,
I have database model that have two columns common to every table:
ownerid, and updateSequenceNumber
since these columns can be populated by automatical means (for example; updateSeqnr is a number that is incremented for each row insert), and they are for sole infrastructural needs (not relevant to domain), I didn't include them in the domain objects. Also placing them into domain objects will bring unnecessary complexity.
under these circumstances, i am wondering how i can make hibernate include these fields with the generated insert query? their values could be obtained from elsewhere, this is the second part of the problem. what i'm really challenged is to make hibernate insert values into unmapped, non property columns.
thanks in advance,
regards
Hibernate version:3.1
Mapping documents: annotation based mapping
Name and version of the database you are using: oracle
_________________ may the source be with you!
|