This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 133813

Summary: Toplink JPA problem
Product: third-party Reporter: mongkeh <mongkeh>
Component: -- Other --Assignee: issues@third-party <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description mongkeh 2008-04-24 03:05:19 UTC
I had a problem when i try to update Primary key using toplink JPA...

[TopLink Warning]: 2008.04.24 08:47:45.453--UnitOfWork(620055)--Exception [TOPLINK-7251] (Oracle TopLink Essentials -
2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.ValidationException
javax.persistence.RollbackException: Exception [TOPLINK-7251] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs
(12/06/2007))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: The attribute [teamUnit] of class [projectcontrol.TeamUnit] is mapped to a primary key column in
the database. Updates are not allowed.
        at
oracle.toplink.essentials.internal.ejb.cmp3.transaction.base.EntityTransactionImpl.commit(EntityTransactionImpl.java:120)
Exception Description: The attribute [teamUnit] of class [projectcontrol.TeamUnit] is mapped to a primary key column in
the database. Updates are not allowed.


This is the code in TeamUnit Class :

@Id
    @Column(name = "TEAM_UNIT", nullable = false, insertable = true, updatable = true)
    private String teamUnit;


Please be advice...
Thx