[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [eclipselink-users] Mapping a Database View
|
- From: Tim Hollosy <hollosyt@xxxxxxxxx>
- Date: Fri, 11 Sep 2009 10:35:34 -0400
- Delivered-to: eclipselink-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=hAjlODFY3SyrDn/S4OrSL0Ig88u+r3p4NljkVcSOWBs=; b=NruzKYtBY68ZLDuq6XuFeIJ4WWA4rbCAJI5RQlC+h1nAM6vyx3nfbQZSTKQqasH9nv /QcG1biIJpeZdUmCEeXS4rZuYtOaYsXteBf5ErAv1VMR+pJg3VclswaMHekRarknpQBv zT6wdrqwZiiJTBckMrMybC90MoR1x5OT8hYQM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=gxAxgy2TUj9Kx+YtQh1ScRa3FlqAbkVlxa81CuxuOndhm1WzvjtOBGnEa/4Xn5O5yZ pa21WUr9MtEIxxyPdwtG0/emS/kc4EZMSIHzKe2GHdBmLwagllV33CKdcO6zpUacJTy6 WVO/ehD3y/poxuVICgqdI9NaOCxUVmeKafhOs=
No, that would give you identity/caching issues.
If there are 3 columns that will always make a row unique in your view
you can set that as a compound primary key for example.
./tch
On Fri, Sep 11, 2009 at 10:33 AM, RogerV <roger.varley@xxxxxxxxxxxxxx> wrote:
>
>
>
> tch wrote:
>>
>> Yeah that's the rub working with views, you'll either have to change
>> your view to have a unique id or make a multi-column @Id that's
>> reasonably unique across the view.
>>
>
> So, are you saying that I just "fake" a uniqueId by simply labelling it as
> such in my entity.java although there is no primary key defined in the
> database?
>
> Regards
>
> --
> View this message in context: http://www.nabble.com/Mapping-a-Database-View-tp25401383p25402082.html
> Sent from the EclipseLink - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>