Example usage for javax.persistence EnumType ORDINAL

List of usage examples for javax.persistence EnumType ORDINAL

Introduction

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

Prototype

EnumType ORDINAL

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

Click Source Link

Document

Persist enumerated type property or field as an integer.

Usage

From source file:com.xyxy.platform.entity.User.java

@Enumerated(value = EnumType.ORDINAL)
public Status getStatus() {
    return status;
}

From source file:com.evolveum.midpoint.repo.sql.data.common.embedded.REmbeddedNamedReference.java

@Enumerated(EnumType.ORDINAL)
@Override
public RObjectType getType() {
    return super.getType();
}

From source file:com.evolveum.midpoint.repo.sql.data.common.embedded.RActivation.java

@Column(nullable = true)
@Enumerated(EnumType.ORDINAL)
public RTimeIntervalStatus getValidityStatus() {
    return validityStatus;
}

From source file:com.evolveum.midpoint.repo.sql.data.common.embedded.RActivation.java

@Column(nullable = true)
@Enumerated(EnumType.ORDINAL)
public RActivationStatus getAdministrativeStatus() {
    return administrativeStatus;
}

From source file:com.evolveum.midpoint.repo.sql.data.common.embedded.RActivation.java

@Column(nullable = true)
@Enumerated(EnumType.ORDINAL)
public RActivationStatus getEffectiveStatus() {
    return effectiveStatus;
}

From source file:com.evolveum.midpoint.repo.sql.data.common.embedded.REmbeddedReference.java

@Enumerated(EnumType.ORDINAL)
@Override
public RObjectType getType() {
    return type;
}

From source file:com.evolveum.midpoint.repo.sql.data.common.container.RExclusion.java

@Enumerated(EnumType.ORDINAL)
public RExclusionPolicy getPolicy() {
    return policy;
}

From source file:com.evolveum.midpoint.repo.sql.data.common.container.RAssignmentReference.java

/**
 * Represents {@link javax.xml.namespace.QName} type attribute in reference e.g.
 * {@link com.evolveum.midpoint.xml.ns._public.common.common_3.UserType} represented
 * as enum {@link com.evolveum.midpoint.repo.sql.data.common.other.RObjectType#USER}
 *
 * @return null if not defined, otherwise value from {@link com.evolveum.midpoint.repo.sql.data.common.other.RObjectType} enum
 *//*  w  ww  .  j a va2  s .c o  m*/
@Column(name = "containerType")
@Enumerated(EnumType.ORDINAL)
@Override
public RObjectType getType() {
    return type;
}

From source file:com.evolveum.midpoint.repo.sql.data.common.container.RCaseWorkItemReference.java

@Column(name = "targetType")
@Enumerated(EnumType.ORDINAL)
@Override
public RObjectType getType() {
    return super.getType();
}

From source file:com.evolveum.midpoint.repo.sql.data.common.container.RCertCaseReference.java

/**
 * Represents {@link javax.xml.namespace.QName} type attribute in reference e.g.
 * {@link com.evolveum.midpoint.xml.ns._public.common.common_3.UserType} represented
 * as enum {@link RObjectType#USER}//  ww  w  .j av  a 2 s . co m
 *
 * @return null if not defined, otherwise value from {@link RObjectType} enum
 */
@Column(name = "containerType")
@Enumerated(EnumType.ORDINAL)
@Override
public RObjectType getType() {
    return super.getType();
}