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:org.projectforge.business.task.TaskDO.java

/** -> Gantt */
@Deprecated/*w ww .  j a  v  a2s.co m*/
@Enumerated(EnumType.STRING)
@Column(name = "gantt_type", length = 10)
public GanttObjectType getGanttObjectType() {
    return ganttObjectType;
}

From source file:org.projectforge.business.task.TaskDO.java

/** -> Gantt */
@Deprecated/*from   w  ww  .j a v  a2 s  .  com*/
@Enumerated(EnumType.STRING)
@Column(name = "gantt_rel_type", length = 15)
public GanttRelationType getGanttRelationType() {
    return ganttRelationType;
}

From source file:org.mitre.oauth2.model.ClientDetailsEntity.java

@Enumerated(EnumType.STRING)
@Column(name = "application_type")
public AppType getApplicationType() {
    return applicationType;
}

From source file:org.orcid.persistence.jpa.entities.ProfileEntity.java

@Basic
@Enumerated(EnumType.STRING)
@Column(name = "iso2_country", length = 2)
public Iso3166Country getIso2Country() {
    return iso2Country;
}

From source file:org.mitre.oauth2.model.ClientDetailsEntity.java

@Enumerated(EnumType.STRING)
@Column(name = "token_endpoint_auth_method")
public AuthMethod getTokenEndpointAuthMethod() {
    return tokenEndpointAuthMethod;
}

From source file:org.mitre.oauth2.model.ClientDetailsEntity.java

@Enumerated(EnumType.STRING)
@Column(name = "subject_type")
public SubjectType getSubjectType() {
    return subjectType;
}

From source file:org.apache.openjpa.persistence.jdbc.AnnotationPersistenceMappingSerializer.java

/**
 * Return enum type for the field.//from  w  ww  .  jav  a 2 s.c om
 */
protected EnumType getEnumType(FieldMapping field) {
    if (field.getDeclaredTypeCode() != JavaTypes.OBJECT)
        return null;
    if (!(field.getHandler() instanceof EnumValueHandler))
        return null;
    return ((EnumValueHandler) field.getHandler()).getStoreOrdinal() ? EnumType.ORDINAL : EnumType.STRING;
}

From source file:org.projectforge.business.teamcal.event.model.TeamEventDO.java

/**
 * Get type of reminder duration minute, hour, day
 * //from w  w w. ja v  a  2  s.  c o m
 * @return the reminderDurationType
 */
@Column(name = "reminder_duration_unit")
@Enumerated(EnumType.STRING)
public ReminderDurationUnit getReminderDurationUnit() {
    return reminderDurationType;
}

From source file:org.projectforge.business.teamcal.event.model.TeamEventDO.java

/**
 * Gets type of event action. AUDIO or DISPLAY
 * //from  ww  w  .j  av  a 2  s. co  m
 * @return the reminderType
 */
@Enumerated(EnumType.STRING)
@Column(name = "reminder_action_type")
public ReminderActionType getReminderActionType() {
    return reminderActionType;
}

From source file:org.orcid.persistence.jpa.entities.ProfileEntity.java

@Basic
@Enumerated(EnumType.STRING)
@Column(name = "indexing_status")
public IndexingStatus getIndexingStatus() {
    return indexingStatus;
}