That's what the toString() method of Veiculo returns. Since you didn't override it, you get what the toString() method of Object returns. If you want something else, then write a toString() method which returns a suitable String object.
posted 6 years ago
I'm lost, i understand that i have to use @Override in toString but wich field? The one i want to be listed?
Or just the one of the relationship, in this case is "empregadoVeiculos " to @Override?
Thanks and sorry for my silly questions but i'm new in hibernate