skipping columns/properties during update or insert

7 views
Skip to first unread message

Dave R

unread,
Dec 17, 2007, 3:34:58 PM12/17/07
to Persist
Hello, a feature request: It would be nice to tag some columns/
properties as "Skip when updating or inserting".

Perhaps @NoWrite or something like that?
@Column(autoGenerated=true) sort of works for inserts but not updates.

Thanks!
Dave

julio

unread,
Dec 19, 2007, 8:50:12 AM12/19/07
to Persist
Hi Dave,

Does @NoColumn help you? It will simply not use the annotated field in
any
operations related with the db. Or is that you need something to only
read
data from a given column but never write to it?

Cheers,

Julio

Dave Rafkind

unread,
Dec 19, 2007, 8:37:06 PM12/19/07
to per...@googlegroups.com
Yes a read-but-not-write is what I am looking for. Actually, looking in
the javadocs and code, autoGenerated=true should do what I want, but the
code for Persist.update() doesn't use
TableMapping.notAutoGeneratedColumns. I'll attach a diff patch to this
email (hope I got the patching right..)
patch.diff
Reply all
Reply to author
Forward
0 new messages