org.gvnix.occ.roo.addon
Annotation Type GvNIXEntityOCCChecksum


@Target(value=TYPE)
@Retention(value=SOURCE)
public @interface GvNIXEntityOCCChecksum

Optimistic Concurrency Control of gvNIX

This annotation manages the OCC aspect for a Entity that hasn't a persistent javax.persistence.Version and no way to have it.

The control is based on a MD5 value computed form a string generated over all persistent entity properties values.

Author:
Jose Manuel Vivó ( jmvivo at disid dot com ) at DiSiD Technologies S.L. made for Conselleria d'Infraestructures i Transport

Optional Element Summary
 String digestMethod
           Digest Method to use for checksum's compute.
 String fieldName
           Name for checksum entity field.
 

fieldName

public abstract String fieldName

Name for checksum entity field. If dosen't exist the field will be created.

occChecksum is the default value.

Returns:
the name of the identifier field to use (defaults to "id"; must be provided)
Default:
"occChecksum"

digestMethod

public abstract String digestMethod

Digest Method to use for checksum's compute.

md5 is the default value.

For more information about values see MessageDigest

Returns:
the name of the identifier field to use (defaults to "id"; must be provided)
Default:
"md5"


Copyright © 2010–2015 Conselleria d'Infraestructures i Transport - Generalitat Valenciana. All rights reserved.