I am not expert in JPA field,and maybe this is not related to your problem,but i do not think so.
Because this about Hibernate(JPA) ,another implementation of JPA and i think it maybe solves your problem.
Please refer to javanotepad.blogspot.com/.../...-in-hibernate.html
Please let me know whether this helps you or not.