I have a class that contains some attributes of type Vector (also tried with ArrayList and same happens). When I try to get an object from that class doing using the find method it works fine, I get the object. But when I call the close method to close the EntityManager the information from the Vector dissapears and I get an empty vector.
Something weird happens, if BEFORE closing the entitymanager I write something like vector.size() or I print it's size or I do anything with the vector, after calling the close method the information from the Vector doesn't disappear.
What am I doing wrong?