In this example i used Entity beans for Persistance.
Nope, you are wrong! You are not using entity beans at all! What you use, is called "entities", not entity beans.
Please put some effort to use the proper terminology.
Entity beans are EJB 2.1 legacy, and are managed by the EJB container (so they really are type of EJBs)
Entities are a JPA artifact, and they are not managed by the EJB container, but by the JPA provider instead (so they are not EJBs at all)