The primary key EmbClass is not changed at all, only a foreign key, so why happens the following error:

Exception Description: The attribute [embClass] of class [EmbClass ] is mapped to a primary key column in the database. Updates are not allowed.
[java] at org.eclipse.persistence.exceptions.ValidationException.primaryKeyUpdateDisallowed(ValidationException.java:2458)
[java] at org.eclipse.persistence.mappings.foundation.AbstractDirectMapping.writeFromObjectIntoRowWithChangeRecord(AbstractDirectMapping.java:1214)

How can I fix this problem?

best regards,

Igor
]]>Igor B2012-12-14T15:39:12-00:00Re: EclipseLink-7251: is mapped to a primary key column in the database. Updates are not allowed.https://www.eclipse.org/forums/index.php/mv/msg/441561/991502/#msg_991502
Chris Delahunt2012-12-19T14:51:15-00:00