I am in the process of creating code generator for my CRUD java web database application. In the making of its Form page, I want to be able to present ENUM field data type, into a combo box. So, having this defined in a MySQL script :
`Employment Status` enum('CPNS','PNS') COLLATE latin1_general_ci NOT NULL,
I want to make an Employment Status
as Combo Box (using <SELEC/>
html input type) with CPNS
,PNS
as its content.
How can I enumerate the content of that field from database using JDBC??? Many thanks!
PS : Some my ask, why do I want to create my own code generator??? Well, I think it will be very fun to create such, and add it to our wide choice of alternative in Java Web universe.. :)