[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:08:05 -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=LQOkhYT/7h568nZQDLgWi5jZ0QVcWjQ3lZp3zTJHOtY=; b=vcno9IPJ1EfvqMmVFbFYq06v4wBDb8sk8hfuScvwJ6WZ+fR/TrqRxOjXQty3quVk0+ Cztz4pOBVo6EN8+uY2GyXXp3nPfY42CDR8Z/PyeXUGWdGtItdafDk3ffHiJJOMCajg64 RPIsMGkGOeYMj3Qg9K/sgP3DrWO9gXw+Vxz3Y=
- 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=Y04eP4JcG3XIbGT87juqhKa5RF5FWT9TU9olybq/Eclf0bLT5UJrtMpc1dWFQya4Ea vwrURLCbN3ry4ug2eo1eQvZzp1AqnQDgkm9FqdX/hbhAb9FEU62FXprCAg8NIhBpTG1t e0UpWq9JXLj/paIsf9JD1kofx3gJmNUfog+GI=
It's the exact same way as for a table, no different. Though you may
want to make your columns read only obviously.
Also make sure your view has a primary key that is unique.
./tch
On Fri, Sep 11, 2009 at 9:54 AM, RogerV <roger.varley@xxxxxxxxxxxxxx> wrote:
>
> Could someone point me to an example of how to map to a database view please.
> I've been googling all day and found loads of sites that imply that it can
> be done but I haven't found an example of how to do it.
>
> Regards
> --
> View this message in context: http://www.nabble.com/Mapping-a-Database-View-tp25401383p25401383.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
>