|
|
|
|
Re: [Teneo] table_per_class and id generation tips [message #1077935 is a reply to message #1077362] |
Fri, 02 August 2013 06:30  |
Eclipse User |
|
|
|
Hi Andrew,
Yes you can use the standard JPA 2.0 annotations on that explicit id eattribute to control how to generate id's.
Explicit id efeatures are better in my opinion than implicit ones.
gr. Martin
On 08/01/2013 05:43 PM, Andrew Whelan wrote:
>> Hi Andrew,
>> I am not sure if table-per-class will work if mappedsuperclass doesn't work either.
>
>> Can't you use a custom id generator? I am more and more in favor of string/uuids as >id's instead of these
>> long/integer ids.
>
> Are you suggesting that we add an implicit ID field to our model and manage our oun IDs or is there a neat way to do
> this with annotations in Teneo? If there is could you give me an example? Thanks!
>
>
>> gr. Martin
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
Powered by
FUDForum. Page generated in 0.07222 seconds