Example usage for javax.persistence EnumType STRING

List of usage examples for javax.persistence EnumType STRING

Introduction

In this page you can find the example usage for javax.persistence EnumType STRING.

Prototype

EnumType STRING

To view the source code for javax.persistence EnumType STRING.

Click Source Link

Document

Persist enumerated type property or field as a string.

Usage

From source file:com.marand.thinkmed.medications.model.impl.MedicationRouteImpl.java

@Override
@Enumerated(EnumType.STRING)
public MedicationRouteTypeEnum getType() {
    return type;
}

From source file:be.fedict.trust.service.entity.ClockDriftConfigEntity.java

@Enumerated(EnumType.STRING)
public TimeProtocol getTimeProtocol() {
    return this.timeProtocol;
}

From source file:org.castor.cpa.jpa.processors.fieldprocessors.JPAEnumeratedProcessor.java

public <I extends BaseNature, A extends Annotation> boolean processAnnotation(final I info, final A annotation,
        final AnnotatedElement target) throws AnnotationTargetException {
    if ((info instanceof JPAFieldNature) && (annotation instanceof Enumerated)
            && target.isAnnotationPresent(Enumerated.class)) {
        _log.debug("processing field annotation " + annotation.toString());

        final JPAFieldNature jpaFieldNature = (JPAFieldNature) info;
        if (((Enumerated) annotation).value() == EnumType.STRING) {
            jpaFieldNature.setStringEnumType(true);
        }/*  ww  w. j av  a  2  s  . c  o  m*/
        return true;
    }
    return false;
}

From source file:com.marand.thinkmed.medications.model.impl.MedicationTypeImpl.java

@Override
@Enumerated(EnumType.STRING)
@Column(nullable = false)
public MedicationTypeEnum getType() {
    return type;
}

From source file:com.marand.thinkmed.medications.model.impl.MedicationWarningImpl.java

@Override
@Enumerated(EnumType.STRING)
@Column(nullable = false)
public WarningSeverity getSeverity() {
    return severity;
}

From source file:com.marand.thinkmed.medications.model.impl.MedicationsExternalCrossTabImpl.java

@Override
@Column(nullable = false)
@Enumerated(EnumType.STRING)
public MedicationsExternalValueType getValueType() {
    return valueType;
}

From source file:org.opencustomer.db.vo.system.UserLoginLogVO.java

@Column(name = "result")
@Enumerated(EnumType.STRING)
public Result getResult() {
    return result;
}

From source file:org.projectforge.continuousdb.demo.entities.UserRightDO.java

@Enumerated(EnumType.STRING)
@Column(length = 40)
public UserRightValue getValue() {
    return value;
}

From source file:mx.ecosur.multigame.manantiales.entity.CheckCondition.java

@Enumerated(EnumType.STRING)
public ConditionType getType() {
    return reason;
}

From source file:com.sentinel.persistence.models.UserRequest.java

/**
 * @return the databaseType
 */
@Enumerated(EnumType.STRING)
public Database getDatabaseType() {
    return databaseType;
}