Langsung ke konten utama

Postingan

Unggulan

cara mengatasi error "Info: updateException [EclipseLink-7251] (Eclipse Persistence Services - 2.6.1.v20150605-31e8258): org.eclipse.persistence.exceptions.ValidationException Exception Description: The attribute [] of class [.] is mapped to a primary key column in the database. Updates are not allowed."

Exception Description: The attribute [] of class [.] is mapped to a primary key column in the database. Updates are not allowed.
Info:    updateException [EclipseLink-7251] (Eclipse Persistence Services - 2.6.1.v20150605-31e8258): org.eclipse.persistence.exceptions.ValidationException
Exception Description: The attribute [] of class [.] is mapped to a primary key column in the database. Updates are not allowed.


Error di atas di sebabkan karena update tidak di ijinkan (ini bug eclipselink), solusinya adalah :

-buka presistence.xml
-tambah kode berikut :
       <property name="eclipselink.weaving.changetracking" value="true"/>
<property name="eclipselink.weaving.lazy" value="true"/>
<property name="eclipselink.weaving.eager" value="true"/>
<property name="eclipselink.weaving.fetchgroups" value="true"/>
<property name="eclipselink.weaving.internal" value="false"/>


l…

Postingan Terbaru

Belajar crud JSP hibernate + DataTable server side

Mini manufakturing

Grafik pada android

BIMBEL PEMROGRAMAN (PHP(WEBSITE) / VB(DEKSTOP APP) / ANDROID(MOBILE APPS)

cara mengatasi "Error: No such table xxx"

Asyntack part 2

Asyntack

why If Else in Android Else always activating

Programer, antara hobi dan pekerjaan

simple root using code