Thank you for your answer, but I still trying to do this work.
When I try to insert person with the address, hibernate try to insert 0 in the address'id. And this is not the number of the person's id. If I insert just the person is working normal.
I'll show the pojos and my main.