I have used Enum
I plan to store the value of Enums into Database and then retrieve it
On Retrieving I get the values in a java.sql.resultSet Object
I want to assign the value of the result to the Enum Variable
So I try to set through constructor
for eg
new Class1(new LogicalYesNo(rs.getInt(1));
But that throws an Exception saying
enum types may not be instantiated
So how to do that
Thanks in advance
CSJakharia