詳細については、https://glassfish.dev.java.net/issues/show_bug.cgi?id=578 を参照してください。
サブクラスでは ManyToMany 関係を使用しないでください。