Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] How to map multiple attributes as part of primary key without different ID class or embedded ID class

Hi Om,

Why can't you just put @Id to all fields?  It just has some limitations,
e.g. you cant call EntitiyManager.findById(...).  Otherise it's working
for us, some of the entities in my current project also use this.

Where I always wonder, why people want to avoid a separate ID class.

Best regards
	Michael


-- 
Michael Hönnig | Övelgönner Str. 24 | D-20257 Hamburg | fon:01522/1001122
http://michael.hoennig.de | http://www.xing.com/profile/Michael_Hoennig
GPG KeyID EC5C271A --- 9DC0 53EC 1549 DA84 A939  15CC C0B7 8FBF EC5C 271A



Back to the top