Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Refactoring int constant's to use enums

 
vuthlarhi donald
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These is how the code is looking at the moment, I want to use java enums instead of constant's,


the first step that I did was to create an enum that looks like this


...How do I save this enum to the database
 
Campbell Ritchie
Sheriff
Pie
Posts: 48972
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you need to save that enum in a database at all?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you saving the current int?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic