Java Code Examples for javax.persistence.Enumerated

The following are top voted examples for showing how to use javax.persistence.Enumerated. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: lams   File: JPAOverriddenAnnotationReader.java   Source Code and License 6 votes vote down vote up
private void getEnumerated(List<Annotation> annotationList, Element element) {
	Element subElement = element != null ? element.element( "enumerated" ) : null;
	if ( subElement != null ) {
		AnnotationDescriptor ad = new AnnotationDescriptor( Enumerated.class );
		String enumerated = subElement.getTextTrim();
		if ( "ORDINAL".equalsIgnoreCase( enumerated ) ) {
			ad.setValue( "value", EnumType.ORDINAL );
		}
		else if ( "STRING".equalsIgnoreCase( enumerated ) ) {
			ad.setValue( "value", EnumType.STRING );
		}
		else if ( StringHelper.isNotEmpty( enumerated ) ) {
			throw new AnnotationException( "Unknown EnumType: " + enumerated + ". " + SCHEMA_VALIDATION );
		}
		annotationList.add( AnnotationFactory.create( ad ) );
	}
}
 
Example 2
Project: domui   File: HibernateChecker.java   Source Code and License 6 votes vote down vote up
/**
 * Enums must be mapped as String, not ORDINAL.
 * @param g
 */
private void checkEnumMapping(Method g) {
	if(Enum.class.isAssignableFrom(g.getReturnType())) {		// Is type enum?
		if(g.getAnnotation(Transient.class) != null)
			return;

		//-- If the enum has a @Type we will have to assume the type handles mapping correctly (like MappedEnumType)
		org.hibernate.annotations.Type ht = g.getAnnotation(Type.class);
		if(null == ht) {
			//-- No @Type mapping, so this must have proper @Enumerated definition.
			Enumerated e = g.getAnnotation(Enumerated.class);
			if(null == e) {
				problem(Severity.ERROR, "Missing @Enumerated annotation on enum property - this will cause ORDINAL mapping of an enum which is undesirable");
				m_enumErrors++;
			} else if(e.value() != EnumType.STRING) {
				problem(Severity.ERROR, "@Enumerated(ORDINAL) annotation on enum property - this will cause ORDINAL mapping of an enum which is undesirable");
				m_enumErrors++;
			}
		}
	}
}
 
Example 3
Project: lams   File: SimpleValueBinder.java   Source Code and License 5 votes vote down vote up
private void applyAttributeConverter(XProperty property, AttributeConverterDefinition attributeConverterDefinition) {
	if ( attributeConverterDefinition == null ) {
		return;
	}

	LOG.debugf( "Starting applyAttributeConverter [%s:%s]", persistentClassName, property.getName() );

	if ( property.isAnnotationPresent( Id.class ) ) {
		LOG.debugf( "Skipping AttributeConverter checks for Id attribute [%s]", property.getName() );
		return;
	}

	if ( isVersion ) {
		LOG.debugf( "Skipping AttributeConverter checks for version attribute [%s]", property.getName() );
		return;
	}

	if ( property.isAnnotationPresent( Temporal.class ) ) {
		LOG.debugf( "Skipping AttributeConverter checks for Temporal attribute [%s]", property.getName() );
		return;
	}

	if ( property.isAnnotationPresent( Enumerated.class ) ) {
		LOG.debugf( "Skipping AttributeConverter checks for Enumerated attribute [%s]", property.getName() );
		return;
	}

	if ( isAssociation() ) {
		LOG.debugf( "Skipping AttributeConverter checks for association attribute [%s]", property.getName() );
		return;
	}

	this.attributeConverterDefinition = attributeConverterDefinition;
}
 
Example 4
Project: holon-datastore-jpa   File: JpaEnumeratedBeanPropertyPostProcessor.java   Source Code and License 5 votes vote down vote up
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public Builder<?> processBeanProperty(Builder<?> property, Class<?> beanOrNestedClass) {
	property.getAnnotation(Enumerated.class).ifPresent(a -> {
		final EnumType enumType = a.value();
		if (enumType == EnumType.STRING) {
			((Builder) property).converter(PropertyValueConverter.enumByName());
		} else {
			((Builder) property).converter(PropertyValueConverter.enumByOrdinal());
		}
		LOGGER.debug(() -> "JpaEnumeratedBeanPropertyPostProcessor: setted property [" + property
				+ "] value converter to default enumeration converter using [" + enumType.name() + "] mode");
	});
	return property;
}
 
Example 5
Project: myWMS   File: LogItem.java   Source Code and License 5 votes vote down vote up
/**
 * Getter for property type.
 * 
 * @return Value of property type.
 */
@Enumerated(EnumType.STRING)
@Column(nullable = false)
public LogItemType getType() {

    return this.type;
}
 
Example 6
Project: maven-plugin   File: GeraEntidade.java   Source Code and License 5 votes vote down vote up
@Enumerated(EnumType.STRING)
private Attribute createAttribute(String[] parts) {
	Boolean oneToMany = false;
	Boolean oneToOne = false;
	Boolean manyToOne = false;
	Boolean manyToMany = false;
	Boolean required = false;
	Boolean enumString = false;
	Boolean enumOrdinal = false;

	if (parts.length > 2) {
		for (int i = 2; i < parts.length; i++) {
			if (this.isRequired(parts[i])) {
				required = Boolean.valueOf(parts[i]);
			} else if (this.isOneToMany(parts[i])) {
				oneToMany = true;
			} else if (this.isOneToOne(parts[i])) {
				oneToOne = true;
			} else if (this.isManyToOne(parts[i])) {
				manyToOne = true;
			} else if (this.isManyToMany(parts[i])) {
				manyToMany = true;
			} else if (this.isEnumString(parts[i])) {
				enumString = true;
			} else if (this.isEnumOrdinal(parts[i])) {
				enumOrdinal = true;
			}
		}
	}

	return new Attribute(parts[0], parts[1], Util.primeiraMaiuscula(parts[0]), oneToMany, oneToOne, manyToOne, manyToMany, required, enumString, enumOrdinal);
}
 
Example 7
Project: oval   File: JPAAnnotationsConfigurer.java   Source Code and License 5 votes vote down vote up
protected void initializeChecks(final Column annotation, final Collection<Check> checks, final AccessibleObject fieldOrMethod) {
    /* If the value is generated (annotated with @GeneratedValue) it is allowed to be null
     * before the entity has been persisted, same is true in case of optimistic locking
     * when a field is annotated with @Version.
     * Therefore and because of the fact that there is no generic way to determine if an entity
     * has been persisted already, a not-null check will not be performed for such fields.
     */
    if (!annotation.nullable() && !fieldOrMethod.isAnnotationPresent(GeneratedValue.class) && !fieldOrMethod.isAnnotationPresent(Version.class)
            && !fieldOrMethod.isAnnotationPresent(NotNull.class))
        if (!containsCheckOfType(checks, NotNullCheck.class))
            checks.add(new NotNullCheck());

    // add Length check based on Column.length parameter, but only:
    if (!fieldOrMethod.isAnnotationPresent(Lob.class) && // if @Lob is not present
            !fieldOrMethod.isAnnotationPresent(Enumerated.class) && // if @Enumerated is not present
            !fieldOrMethod.isAnnotationPresent(Length.class) // if an explicit @Length constraint is not present
    ) {
        final LengthCheck lengthCheck = new LengthCheck();
        lengthCheck.setMax(annotation.length());
        checks.add(lengthCheck);
    }

    // add Range check based on Column.precision/scale parameters, but only:
    if (!fieldOrMethod.isAnnotationPresent(Range.class) // if an explicit @Range is not present
            && annotation.precision() > 0 // if precision is > 0
            && Number.class.isAssignableFrom(fieldOrMethod instanceof Field ? ((Field) fieldOrMethod).getType() : ((Method) fieldOrMethod).getReturnType()) // if numeric field type
    ) {
        /* precision = 6, scale = 2  => -9999.99<=x<=9999.99
         * precision = 4, scale = 1  =>   -999.9<=x<=999.9
         */
        final RangeCheck rangeCheck = new RangeCheck();
        rangeCheck.setMax(Math.pow(10, annotation.precision() - annotation.scale()) - Math.pow(0.1, annotation.scale()));
        rangeCheck.setMin(-1 * rangeCheck.getMax());
        checks.add(rangeCheck);
    }
}
 
Example 8
Project: omr   File: GrupoVO.java   Source Code and License 5 votes vote down vote up
/**
 * 
 * @return
 */
@ElementCollection(targetClass=EAuthority.class,fetch=FetchType.EAGER)
@JoinTable(name = "grupo_autorities")
@Enumerated(EnumType.STRING)
@Fetch(FetchMode.SELECT)
public List<EAuthority> getAuthorities() {
	return authorities;
}
 
Example 9
Project: omr   File: PessoaVO.java   Source Code and License 5 votes vote down vote up
@ElementCollection(targetClass=EAuthority.class,fetch=FetchType.EAGER)
@JoinTable(name = "pessoa_autorities")
@Enumerated(EnumType.STRING)
@Fetch(FetchMode.SELECT)
public List<EAuthority> getAuthorities() {
	return authorities;
}
 
Example 10
Project: omr   File: PessoaVO.java   Source Code and License 5 votes vote down vote up
@ElementCollection(targetClass=EAuthority.class,fetch=FetchType.EAGER)
@JoinTable(name = "pessoa_autorities")
@Enumerated(EnumType.STRING)
@Fetch(FetchMode.SELECT)
public List<EAuthority> getAuthorities() {
	return authorities;
}
 
Example 11
Project: Project-H-Backend   File: KeyPerformanceIndicatorType.java   Source Code and License 5 votes vote down vote up
/**
 * @return type type of KPI
 */
@Enumerated(EnumType.ORDINAL)
@Column(name = "type", unique = false, nullable = false)
@Field(index=org.hibernate.search.annotations.Index.TOKENIZED, store=Store.NO)
public Type getType() {
	return this.type;
}
 
Example 12
Project: powop   File: Description.java   Source Code and License 5 votes vote down vote up
/**
 *
 * @return Return the subjects that this content is about.
 */
@ElementCollection
@Column(name = "type")
@Enumerated(EnumType.STRING)
@Sort(type = SortType.NATURAL)
public SortedSet<DescriptionType> getTypes() {
	return types;
}
 
Example 13
Project: powop   File: Image.java   Source Code and License 5 votes vote down vote up
@ElementCollection
@CollectionTable(name="image_SubjectPart", [email protected](name="image_id"))
@Column(name="subjectPart")
@Enumerated(value = EnumType.STRING)
public Set<DescriptionType> getSubjectPart() {
	return subjectPart;
}
 
Example 14
Project: omr   File: PessoaVO.java   Source Code and License 5 votes vote down vote up
@ElementCollection(targetClass=EAuthority.class,fetch=FetchType.EAGER)
@JoinTable(name = "pessoa_autorities")
@Enumerated(EnumType.STRING)
@Fetch(FetchMode.SELECT)
public List<EAuthority> getAuthorities() {
	return authorities;
}
 
Example 15
Project: omr   File: PessoaVO.java   Source Code and License 5 votes vote down vote up
@ElementCollection(targetClass=EAuthority.class,fetch=FetchType.EAGER)
@JoinTable(name = "pessoa_autorities")
@Enumerated(EnumType.STRING)
@Fetch(FetchMode.SELECT)
public List<EAuthority> getAuthorities() {
	return authorities;
}
 
Example 16
Project: omr   File: GrupoVO.java   Source Code and License 5 votes vote down vote up
/**
 * 
 * @return
 */
@ElementCollection(targetClass=EAuthority.class,fetch=FetchType.EAGER)
@JoinTable
@Enumerated(EnumType.STRING)
@Fetch(FetchMode.SELECT)
public List<EAuthority> getAuthorities() {
	return authorities;
}
 
Example 17
Project: omr   File: PessoaVO.java   Source Code and License 5 votes vote down vote up
@ElementCollection(targetClass=EAuthority.class,fetch=FetchType.EAGER)
@JoinTable
@Enumerated(EnumType.STRING)
@Fetch(FetchMode.SELECT)
public List<EAuthority> getAuthorities() {
	return authorities;
}
 
Example 18
Project: omr   File: GrupoVO.java   Source Code and License 5 votes vote down vote up
/**
 * 
 * @return
 */
@ElementCollection(targetClass=EAuthority.class,fetch=FetchType.EAGER)
@JoinTable(name = "grupo_autorities")
@Enumerated(EnumType.STRING)
@Fetch(FetchMode.SELECT)
public List<EAuthority> getAuthorities() {
	return authorities;
}
 
Example 19
Project: omr   File: PessoaVO.java   Source Code and License 5 votes vote down vote up
@ElementCollection(targetClass=EAuthority.class,fetch=FetchType.EAGER)
@JoinTable(name = "pessoa_autorities")
@Enumerated(EnumType.STRING)
@Fetch(FetchMode.SELECT)
public List<EAuthority> getAuthorities() {
	return authorities;
}
 
Example 20
Project: omr   File: GrupoVO.java   Source Code and License 5 votes vote down vote up
/**
 * 
 * @return
 */
@ElementCollection(targetClass=EAuthority.class,fetch=FetchType.EAGER)
@JoinTable(name = "grupo_autorities")
@Enumerated(EnumType.STRING)
@Fetch(FetchMode.SELECT)
public List<EAuthority> getAuthorities() {
	return authorities;
}
 
Example 21
Project: lams   File: CollectionPropertyHolder.java   Source Code and License 4 votes vote down vote up
public void prepare(XProperty collectionProperty) {
	// fugly
	if ( prepared ) {
		return;
	}

	if ( collectionProperty == null ) {
		return;
	}

	prepared = true;

	if ( collection.isMap() ) {
		if ( collectionProperty.isAnnotationPresent( MapKeyEnumerated.class ) ) {
			canKeyBeConverted = false;
		}
		else if ( collectionProperty.isAnnotationPresent( MapKeyTemporal.class ) ) {
			canKeyBeConverted = false;
		}
		else if ( collectionProperty.isAnnotationPresent( MapKeyClass.class ) ) {
			canKeyBeConverted = false;
		}
		else if ( collectionProperty.isAnnotationPresent( MapKeyType.class ) ) {
			canKeyBeConverted = false;
		}
	}
	else {
		canKeyBeConverted = false;
	}

	if ( collectionProperty.isAnnotationPresent( ManyToAny.class ) ) {
		canElementBeConverted = false;
	}
	else if ( collectionProperty.isAnnotationPresent( OneToMany.class ) ) {
		canElementBeConverted = false;
	}
	else if ( collectionProperty.isAnnotationPresent( ManyToMany.class ) ) {
		canElementBeConverted = false;
	}
	else if ( collectionProperty.isAnnotationPresent( Enumerated.class ) ) {
		canElementBeConverted = false;
	}
	else if ( collectionProperty.isAnnotationPresent( Temporal.class ) ) {
		canElementBeConverted = false;
	}
	else if ( collectionProperty.isAnnotationPresent( CollectionType.class ) ) {
		canElementBeConverted = false;
	}

	// Is it valid to reference a collection attribute in a @Convert attached to the owner (entity) by path?
	// if so we should pass in 'clazzToProcess' also
	if ( canKeyBeConverted || canElementBeConverted ) {
		buildAttributeConversionInfoMaps( collectionProperty, elementAttributeConversionInfoMap, keyAttributeConversionInfoMap );
	}
}
 
Example 22
Project: aws-photosharing-example   File: Role.java   Source Code and License 4 votes vote down vote up
@Id
@Enumerated(EnumType.STRING)	
public com.amazon.photosharing.enums.Role getRole() {return this._role;}
 
Example 23
Project: ponto-inteligente-api   File: Lancamento.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
@Column(name = "tipo", nullable = false)
public TipoEnum getTipo() {
	return tipo;
}
 
Example 24
Project: ponto-inteligente-api   File: Funcionario.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
@Column(name = "perfil", nullable = false)
public PerfilEnum getPerfil() {
	return perfil;
}
 
Example 25
Project: appng-examples   File: Person.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
public Gender getGender() {
	return gender;
}
 
Example 26
Project: borabeber-api   File: Usuario.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
@Column(name = "perfil", nullable = false)
public PerfilEnum getPerfil() {
	return perfil;
}
 
Example 27
Project: lj-projectbuilder   File: AttributeEntity.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
@Column(name="TYPE", nullable = false)
public DataType getDataType() {
	return dataType;
}
 
Example 28
Project: lj-projectbuilder   File: CodeTemplateEntity.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
@Column(name="TEMPLATE_TYPE", nullable = false)
public TemplateType getType() {
	return type;
}
 
Example 29
Project: helium   File: Persona.java   Source Code and License 4 votes vote down vote up
@Enumerated
@Column(name="sexe", nullable=false)
public Sexe getSexe() {
	return this.sexe;
}
 
Example 30
Project: webpedidos   File: Cliente.java   Source Code and License 4 votes vote down vote up
@NotNull
@Enumerated(EnumType.STRING)
@Column(nullable = false, length = 10, name = "tipo_pessoa")
public TipoPessoa getTipoPessoa() {
	return tipoPessoa;
}
 
Example 31
Project: webpedidos   File: Pedido.java   Source Code and License 4 votes vote down vote up
@NotNull
@Enumerated(EnumType.STRING)
@Column(name = "status_pedido", nullable = false, length = 20)
public StatusPedido getStatusPedido() {
	return this.statusPedido;
}
 
Example 32
Project: webpedidos   File: Pedido.java   Source Code and License 4 votes vote down vote up
@NotNull
@Enumerated(EnumType.STRING)
@Column(name = "forma_pagamento", nullable = false, length = 20)
public FormaPagamento getFormaPagamento() {
	return formaPagamento;
}
 
Example 33
Project: mycore   File: MCRUser.java   Source Code and License 4 votes vote down vote up
/**
 * @return the hashType
 */
@Column(name = "hashType", nullable = true)
@Enumerated(EnumType.STRING)
public MCRPasswordHashType getHashType() {
    return password == null ? null : password.hashType;
}
 
Example 34
Project: mycore   File: MCRJob.java   Source Code and License 4 votes vote down vote up
/**
 * Returns the current state ({@link MCRJobStatus}) of the job.
 * 
 */
@Column(name = "status", nullable = false)
@Enumerated(EnumType.STRING)
public MCRJobStatus getStatus() {
    return status;
}
 
Example 35
Project: myWMS   File: LOSGoodsReceiptPosition.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
public LOSGoodsReceiptType getReceiptType() {
	return receiptType;
}
 
Example 36
Project: myWMS   File: LOSGoodsReceipt.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
public LOSGoodsReceiptState getReceiptState() {
    return receiptState;
}
 
Example 37
Project: myWMS   File: OrderReceipt.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
public LOSOrderRequestState getState() {
	return state;
}
 
Example 38
Project: myWMS   File: OrderReceipt.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
@Column(nullable=false)
public OrderType getOrderType() {
	return orderType;
}
 
Example 39
Project: myWMS   File: LOSAdvice.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
public LOSAdviceState getAdviceState() {
    return adviceState;
}
 
Example 40
Project: myWMS   File: LOSStockUnitRecord.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
public LOSStockUnitRecordType getType() {
	return type;
}
 
Example 41
Project: myWMS   File: LOSStorageRequest.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
public LOSStorageRequestState getRequestState() {
    return requestState;
}
 
Example 42
Project: myWMS   File: LOSGoodsOutRequestPosition.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
public LOSGoodsOutRequestPositionState getOutState() {
	return outState;
}
 
Example 43
Project: myWMS   File: LOSUnitLoadAdvice.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
@Column(nullable=false)
public LOSAdviceType getAdviceType() {
	return adviceType;
}
 
Example 44
Project: myWMS   File: LOSUnitLoadAdvice.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
@Column(nullable=false)
public LOSUnitLoadAdviceState getAdviceState() {
	return adviceState;
}
 
Example 45
Project: myWMS   File: LOSGoodsOutRequest.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
public LOSGoodsOutRequestState getOutState() {
	return outState;
}
 
Example 46
Project: myWMS   File: LOSStockTaking.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
public LOSStockTakingType getStockTakingType() {
	return stockTakingType;
}
 
Example 47
Project: myWMS   File: LOSUnitLoad.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
public LOSUnitLoadPackageType getPackageType() {
	return packageType;
}
 
Example 48
Project: myWMS   File: LOSUnitLoadRecord.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
@Column(nullable=false, updatable=false)
public LOSUnitLoadRecordType getRecordType() {
	return recordType;
}
 
Example 49
Project: myWMS   File: ItemData.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
public LotSubstitutionType getLotSubstitutionType() {
	return lotSubstitutionType;
}
 
Example 50
Project: myWMS   File: ItemUnit.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.STRING)
public ItemUnitType getUnitType() {
	return unitType;
}
 
Example 51
Project: cosmic   File: Zone.java   Source Code and License 4 votes vote down vote up
@Access(AccessType.PROPERTY)
@Column(name = "allocation_state")
@Enumerated(value = EnumType.STRING)
public AllocationState getAllocationState() {
    return super.getAllocationState();
}
 
Example 52
Project: cosmic   File: Zone.java   Source Code and License 4 votes vote down vote up
@Access(AccessType.PROPERTY)
@Column(name = "networktype")
@Enumerated(EnumType.STRING)
public NetworkType getNetworkType() {
    return super.getNetworkType();
}
 
Example 53
Project: celerio-angular-quickstart   File: Author.java   Source Code and License 4 votes vote down vote up
@Column(name = "CIVILITY", length = 2)
@Enumerated(STRING)
public Civility getCivility() {
    return civility;
}
 
Example 54
Project: celerio-angular-quickstart   File: User.java   Source Code and License 4 votes vote down vote up
@Column(name = "CIVILITY", length = 2)
@Enumerated(STRING)
public Civility getCivility() {
    return civility;
}
 
Example 55
Project: engerek   File: RAuditEventRecord.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.ORDINAL)
public RAuditEventStage getEventStage() {
	return eventStage;
}
 
Example 56
Project: engerek   File: RAuditEventRecord.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.ORDINAL)
public RAuditEventType getEventType() {
	return eventType;
}
 
Example 57
Project: engerek   File: RAuditEventRecord.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.ORDINAL)
public ROperationResultStatus getOutcome() {
	return outcome;
}
 
Example 58
Project: engerek   File: RAuditEventRecord.java   Source Code and License 4 votes vote down vote up
@Enumerated(EnumType.ORDINAL)
public RObjectType getTargetType() {
	return targetType;
}
 
Example 59
Project: engerek   File: RObject.java   Source Code and License 4 votes vote down vote up
@Enumerated
@NotQueryable
public RObjectType getObjectTypeClass() {
    return objectTypeClass;
}
 
Example 60
Project: engerek   File: RActivation.java   Source Code and License 4 votes vote down vote up
@Column(nullable = true)
@Enumerated(EnumType.ORDINAL)
public RTimeIntervalStatus getValidityStatus() {
    return validityStatus;
}