|Re: javax.persistence.Temporal annotation is duplicated on generated source code [message #1014865 is a reply to message #1014823]
||Tue, 26 February 2013 16:00
| Martin Taal
Registered: July 2009
The way to do this is to use a separate annotations model, this one is analyzed by Texo to prevent these double
btw, I am considering for the future to allow/support what you are doing, direct annotations in the model itself,
without overriding/adding duplicates. But this is some work to do..
On 02/26/2013 03:33 PM, Emanuele Gesuato wrote:
> Hi there,
> We have a very simple ecore model in which we are overriding the @Temporal annotation used for an EDate attribute.
> By default, (as far as I know) texo uses the @Temporal(TemporalType.DATE) for every EDate attribute. For business purposes we tried to change the annotation with @Temporal(TemporalType.TIME).
> This is our final annotated ecore model:
> But texo seems to take care to both @Temporal annotation, thus both are generated causing a compilation error:
> Are we doing something wrong ?
> In model_date.zip file you could find the (very simple) model I'm using to "isolate" the error.
With Regards, Martin Taal
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
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.02781 seconds