Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Problem in mapping Table having no Primary Key

If there are the field(s) that - just like primary key - define the identity of the row, then map them as Ids. It's impossible to map Java objects to/from database rows unless the latter have identity (as Java objects do).
On 7/30/2010 9:01 AM, Tanujit Chowdhury wrote:
Hi,
I have a table in MSSQL DB server which does not have any primary key.
When I have tried to deploy the persistance unit it gave exception as:
Entity class [class net.msl.usicaf.jpa.entities.Userid] has no primary
key specified. It should define either an @Id, @EmbeddedId or an
@IdClass.

I am using Eclipselink 1.0.2, and Oracle Weblogic 10.3.2.

How to solve this?



Back to the top