[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: TENEO JPA Annotation - create a view

Hi Yigal,
Teneo questions are answered on the EMFT newsgroup (I cross-posted there).

Regarding your question:
http://www.hibernate.org/116.html#A27

So if you add a @Table(name='myviewname') it should work.

gr. Martin

Yigal wrote:
I'm using TENEO + hibernate to persist my data and do queries.
So far I was able to cover all my needs by applying JPA annotation in the eCore and generate the mapping file directly with TENEO.


Do you know if the TENEO annotation supporting creating view instead of tables (in the mapping file)?
If it doesn't what would be the best way to map the class to a view in a database.


Thanks
Yigal


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxxxxxxxx - mtaal@xxxxxxxxx
Web: www.springsite.com - www.elver.org