[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
AW: [eclipselink-users] Problem in mapping Table having no Primary Key
|
I suggest, that you should map all fields which can't be null as ids. So you have can treat it in a consistent way.
-----Ursprüngliche Nachricht-----
Von: eclipselink-users-bounces@xxxxxxxxxxx [mailto:eclipselink-users-bounces@xxxxxxxxxxx] Im Auftrag von Tanujit Chowdhury
Gesendet: Freitag, 30. Juli 2010 15:02
An: eclipselink-users@xxxxxxxxxxx
Betreff: [eclipselink-users] Problem in mapping Table having no Primary Key
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?
--
Tanujit Chowdhury
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users