JPA ManyToMany error when persistance
<p>I get an error when i use <code>ManyToMany</code> relationship to persist an object, I searched a lot about this problem but I can't find the solution, someone help me to find a solution for this problem please, here is my code : </p>

<p><strong>Utilisateur entity</strong></p>

<pre><code>public class Utilisateur implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(nullable = false)
    private Integer id;
    @Column(length = 2147483647)
    private String nom;
    private Integer theme;
    @JoinTable(name = "utilisateur_prvilege", schema = "sch_admin", joinColumns = {
        @JoinColumn(name = "privilege", referencedColumnName = "id")}, inverseJoinColumns = {
        @JoinColumn(name = "utilisateur", referencedColumnName = "id")})
    @ManyToMany(cascade = CascadeType.ALL)
    private List&lt;Privilege&gt; privilegeList = new ArrayList&lt;&gt;();

..getters and setter..

}
</code></pre>

<p><strong>Privilege entity</strong></p>

<pre><code>public class Privilege implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column
    private Integer id;
    private Integer pane;
    @Column(length = 2147483647)
    private String description;
    @ManyToMany(mappedBy = "privilegeList")
    private List&lt;Utilisateur&gt; utilisateurList = new ArrayList&lt;&gt;();
..getters and setter..

}
</code></pre>

<p><strong>Create new Utilisateur</strong></p>

<pre><code>public void create(Utilisateur utilisateur) {
    EntityManager em = null;
    try {
        em = getEntityManager();
        em.getTransaction().begin();
        em.persist(utilisateur);
        em.getTransaction().commit();
    } finally {
        if (em != null) {
            em.close();
        }
    }
}
</code></pre>