1
I have the event button saved, when I click to save, the following appears : Java.lang.String cannot be cast to org.nomedopacote.modelo.Funcionario
cbNomeUsuario - It’s Jcomobox’s name that they’re picking up a List Functio .
usuario.setFuncionario((Funcionario) cbNomeUsuario.getSelectedItem());
A cast error, someone can help me ?
I want to take the return or is the employee ID to store in the bank.
Save to normal bank : getFunctioning(). getId();
If you show your class
Funcionário
makes it easier to help you.– Math