I'm doing a project in NetBeans using the persistence API and a MySQL Database. I have already created a persistence unit with the proper connection information and an entity class for the table I am doing.
My main program is a server and I can request to add, remove, modify, or list the items in that table. I have no problem entering adding or removing data, but the problem is when I request "list" through telnet. The thread starts and executes this piece of code