Example usage for org.hibernate.type EnumType ENUM

List of usage examples for org.hibernate.type EnumType ENUM

Introduction

In this page you can find the example usage for org.hibernate.type EnumType ENUM.

Prototype

String ENUM

To view the source code for org.hibernate.type EnumType ENUM.

Click Source Link

Usage

From source file:com.cai310.lottery.entity.lottery.Scheme.java

/**
 * @return {@link #shareType}//from   w  ww  .ja v a  2s  .  co  m
 */
@Type(type = "org.hibernate.type.EnumType", parameters = {
        @Parameter(name = EnumType.ENUM, value = "com.cai310.lottery.common.ShareType"),
        @Parameter(name = EnumType.TYPE, value = ShareType.SQL_TYPE) })
@Column(nullable = false, updatable = false)
public ShareType getShareType() {
    return shareType;
}

From source file:com.cai310.lottery.entity.lottery.Scheme.java

/**
 * @return {@link #secretType}/*from   w  w w.j a  v  a  2 s .  c om*/
 */
@Type(type = "org.hibernate.type.EnumType", parameters = {
        @Parameter(name = EnumType.ENUM, value = "com.cai310.lottery.common.SecretType"),
        @Parameter(name = EnumType.TYPE, value = SecretType.SQL_TYPE) })
@Column(nullable = false)
public SecretType getSecretType() {
    return secretType;
}

From source file:com.cai310.lottery.entity.lottery.Scheme.java

/**
 * @return {@link #state}//from www.  j  ava  2 s .c  o  m
 */
@Type(type = "org.hibernate.type.EnumType", parameters = {
        @Parameter(name = EnumType.ENUM, value = "com.cai310.lottery.common.SchemeState"),
        @Parameter(name = EnumType.TYPE, value = SchemeState.SQL_TYPE) })
@Column(nullable = false)
public SchemeState getState() {
    return state;
}

From source file:com.cai310.lottery.entity.lottery.Scheme.java

/**
 * @return {@link #subscriptionLicenseType}
 */// w ww.  j a v  a 2 s .co m
@Type(type = "org.hibernate.type.EnumType", parameters = {
        @Parameter(name = EnumType.ENUM, value = "com.cai310.lottery.common.SubscriptionLicenseType"),
        @Parameter(name = EnumType.TYPE, value = SubscriptionLicenseType.SQL_TYPE) })
@Column(nullable = false)
public SubscriptionLicenseType getSubscriptionLicenseType() {
    return subscriptionLicenseType;
}

From source file:com.cai310.lottery.entity.lottery.Scheme.java

/**
 * @return {@link #winningUpdateStatus}//from   www  . j ava  2  s.  c  o  m
 */
@Type(type = "org.hibernate.type.EnumType", parameters = {
        @Parameter(name = EnumType.ENUM, value = "com.cai310.lottery.common.WinningUpdateStatus"),
        @Parameter(name = EnumType.TYPE, value = WinningUpdateStatus.SQL_TYPE) })
@Column(nullable = false)
public WinningUpdateStatus getWinningUpdateStatus() {
    return winningUpdateStatus;
}

From source file:com.cai310.lottery.entity.lottery.Scheme.java

@Type(type = "org.hibernate.type.EnumType", parameters = {
        @Parameter(name = EnumType.ENUM, value = "com.cai310.lottery.common.PlatformInfo"),
        @Parameter(name = EnumType.TYPE, value = SalesMode.SQL_TYPE) })
@Column(updatable = false)//from  w ww.j  a v a 2s  .c  o  m
public PlatformInfo getPlatform() {
    return platform;
}

From source file:com.cai310.lottery.entity.lottery.Scheme.java

/**
 * @return {@link #mode}/*from w  w  w.  j av a2 s  .co m*/
 */

@Type(type = "org.hibernate.type.EnumType", parameters = {
        @Parameter(name = EnumType.ENUM, value = "com.cai310.lottery.common.SalesMode"),
        @Parameter(name = EnumType.TYPE, value = SalesMode.SQL_TYPE) })
@Column(name = "sales_mode", nullable = false, updatable = false)
public SalesMode getMode() {
    return mode;
}

From source file:com.cai310.lottery.entity.lottery.Scheme.java

@Type(type = "org.hibernate.type.EnumType", parameters = {
        @Parameter(name = EnumType.ENUM, value = "com.cai310.lottery.common.SaleAnalyseState"),
        @Parameter(name = EnumType.TYPE, value = SalesMode.SQL_TYPE) })
@Column/*from w w  w. jav a  2  s.  c om*/
public SaleAnalyseState getSaleAnalyseState() {
    return saleAnalyseState;
}

From source file:com.cai310.lottery.entity.lottery.Scheme.java

/**
 * @return the schemePrintState/* ww w .j  a  v  a2s.  co m*/
 */
@Type(type = "org.hibernate.type.EnumType", parameters = {
        @Parameter(name = EnumType.ENUM, value = "com.cai310.lottery.common.SchemePrintState"),
        @Parameter(name = EnumType.TYPE, value = SchemeState.SQL_TYPE) })
@Column(nullable = false)
public SchemePrintState getSchemePrintState() {
    return schemePrintState;
}