For more information, see https://glassfish.dev.java.net/issues/show_bug.cgi?id=578.
Do not use ManyToMany relationship in a subclass.