www.a5go.com

www.a5go.com | VPS Hosting Coupons & Reviews & Skills

Saturday, October 4, 2014

Grails,How to use enum

Grails,How to use enum


Example:

Groovy Code


package com.test

public enum MessageStatus
PENDING(0),SUCCESS(1),FALSE(2)

private final Integer value

MessageStatus(Integer value)
this.value = value


Integer getId()
value


Grails Domain call this groovy method


import com.test.MessageStatus

class MessageDetails
MessageStatus status


Grails,How to use enum
Posted by Unknown at 7:13 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2015 (6)
    • ►  May (2)
    • ►  April (1)
    • ►  February (1)
    • ►  January (2)
  • ▼  2014 (187)
    • ►  December (1)
    • ►  November (10)
    • ▼  October (15)
      • HAPPY HALLOWEEN! LIMITED TIME OFFER NOW AVAILABLE!...
      • mediatemple Premium WordPress hosting for just $5.
      • How To Set Up SSH Keys on Debian/Ubuntu
      • How To Install and Configure Varnish 3 with Apache...
      • Vultr SSD VPS Servers, Cloud Hosting ,Free $20 cre...
      • How to uninstall gnome environment on debian
      • Grails Service Get session,response,request,servle...
      • Getting Spring Context in Grails BootStrap
      • Linux Command-SCP,example
      • Grails Goodness Notebook
      • Grails,How to use enum
      • Grails mail config
      • issue:[Fatal Error] :55983:45: XML document struct...
      • Getting Started with Grails and MySQL
      • Error Error executing script ShiroQuickStart: groo...
    • ►  September (75)
    • ►  August (86)
Awesome Inc. theme. Powered by Blogger.