I am reading from a database, which has values like "BUY" or "SELL" for Column "BUY_SELL"
In Java, I've made this attribute into an enum, called RequestType. In the code line below, I'm trying to set my entity attribute to the value I read from the database column, but I'm not sure how I can enter a string into an enum type.
There doesn't seem to be a resultset .method that is suitable for this
req.setRequestType(rs.getString("BUY_SELL")); //The method setRequestType(RequestType) in the type Request is not applicable for the arguments (String)