Join Slack
Powered by
First of all mysql has ENUM type ( <http://dev.mys...
# exposed
t
tapac
07/04/2016, 1:48 PM
First of all mysql has ENUM type (
http://dev.mysql.com/doc/refman/5.7/en/enum.html
) but it's not a part of ANSI SQL. If you use an entity mapping in exposed, you can write :
Copy code
var enumProperty by MyTable.varcharCol.byEnum(MyEnum::class.java)
But I think that your approach is better for repository-based dao.
Open in Slack
Previous
Next