@Retention(value=RUNTIME) public @interface HGIgnore
This annotation can be used to mark a bean property to be ignored when a HyperGraph type is being automatically created for it.
In general, a bean property is included as a record slot in HyperGraph whenever
both a setter and a getter are present for it. You can annotate either the setter,
getter, or the member field declaration with
@HGIgnore in order to
indicate that the property it NOT to be recorded in HyperGraph.
The most common case where a bean property is to be ignored is when a
getter/setter combination does not actually correspond to some independent
internal bean field. Note that in case it DOES correspond to an
internal bean field, but you don't want to save it anyway, you can also
declare the field as
transient - the standard Java
mechanism to ignore a field during serialization/persistence.
Copyright © 2015. All rights reserved.