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 - Toplink JPA problem
Summary: Toplink JPA problem
Status: NEW
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@third-party
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-24 03:05 UTC by mongkeh
Modified: 2008-04-24 03:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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