How to approach data tracking? [message #522017] |
Fri, 19 March 2010 12:14  |
Eclipse User |
|
|
|
Hi all,
I am newbie to JPA and have been developing an essay application for my organisation. Currently I am almost at the end of it, but there remains an issue regarding data tracking in the backend database.
Currently I have come to record data in a 'record per instance' manner. This model doesn't allow me to track changes in a userfriendly way. I can figure out tricky ways of doing it, if I must unavoidably stick to this way of doing things. However I am sure there must be an easier way to build it with another pk strategy.
I would like to adopt a double primarykey where in one field I would have my currently automatically created id (through an 'Identity' pk generation strategy), and in the second field I would have a DELETED flag such as {0,1}.
If possible I would appreciate if someone could give me a hint on how to get there.
Thanks in advance for your help!
Carlos.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09358 seconds