|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value={METHOD,FIELD,PARAMETER}) public @interface ObjectId
Indicates that the property should be converted to an ObjectId before being stored in the database, and back to whatever type it is afterwards. Use this if you want an ID to have a String or byte[] value, but you want it stored in the database as an ObjectId.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |