Beginner |
|
Joined: Sun Oct 03, 2004 8:50 am Posts: 32 Location: McLean, VA
|
Three things I could think of off the top of my head
These two require you to map the column.
1. During construction time set the value to something and make the getters and setters private. Then no one can call these methods but you still get the values in there.
2. Use the unsaved-value attribute on your property mapping. This only works for non-primitive types though I believe.
Or, if you can add triggers to your database you can always have them populate those columns with default values on insert.
_________________ - Chad
|
|