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.plugins.crm.ContactEntryDO.java

@Enumerated(EnumType.STRING)
@Column(length = 15, name = "contact_type", nullable = false)
public ContactType getContactType() {
    return contactType;
}

From source file:no.abmu.questionnaire.domain.data.MuseumOrganizationFormFieldData.java

@Enumerated(EnumType.STRING)
@Column(name = "enumValue")
public MuseumOrganizationForm getMuseumOrganizationFormValue() {
    return museumOrganizationForm;
}

From source file:com.hmsinc.epicenter.model.workflow.EventDisposition.java

/**
 * @return the type/* w w  w.jav a  2 s . c  om*/
 */
@Enumerated(EnumType.STRING)
@Column(name = "TYPE", unique = false, nullable = false, insertable = true, updatable = true)
public WorkflowStateType getType() {
    return type;
}

From source file:example.app.model.Address.java

@Enumerated(EnumType.STRING)
public Type getType() {
    return (type != null ? type : Type.DEFAULT);
}

From source file:org.opencustomer.db.vo.calendar.CalendarVO.java

@Column(name = "access_group")
@Enumerated(EnumType.STRING)
public Access getAccessGroup() {
    return accessGroup;
}

From source file:com.vmware.thinapp.workpool.model.InstanceModel.java

@Enumerated(EnumType.STRING)
public State getState() {
    return state;
}

From source file:com.cubeia.backoffice.users.entity.User.java

@Enumerated(EnumType.STRING)
public UserStatus getStatus() {
    return status;
}

From source file:org.tonguetied.audit.AuditLogRecord.java

/**
 * @return the message describing the action taken
 */
@Column(nullable = false, length = 7)
@Enumerated(EnumType.STRING)
public Operation getMessage() {
    return message;
}

From source file:com.syncnapsis.data.model.News.java

/**
 * Das maximale Alter, mit dem diese Nachricht noch angezeigt werden soll.
 * Wichtigere Nachrichten werden nach ihrem Erscheinen noch lnger
 * angezeigt./*from  w  ww.  ja v  a  2s .  c  om*/
 * 
 * @return maxAge
 */
@Column(nullable = false, length = LENGTH_ENUM)
@Enumerated(value = EnumType.STRING)
public EnumNewsAge getMaxAge() {
    return maxAge;
}

From source file:org.projectforge.access.AccessEntryDO.java

/**
 */
@Column(name = "access_type")
@Enumerated(EnumType.STRING)
public AccessType getAccessType() {
    return this.accessType;
}