For Enums, how to persist ENUM string not ordinal value in hibernation dropwizard

0 votes
asked Mar 3, 2016 by where (590 points)
When persist enum column, it gets saved into database with its ordinal value, not string value.

3 Answers

+1 vote
answered May 14, 2016 by Menger (910 points)
There is a awesome demo of your solution
0 votes
answered May 23, 2016 by staticPomroy (160 points)
Perhaps this will help someone
commented May 24, 2016 by Agosto_4349 (140 points)
Open the manifest file and change the line
0 votes
answered May 23, 2016 by Ubj_8313 (220 points)
Searched everywhere for this and finally found a solution that works for us. For a generic solution please refer to the accepted answer

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!