Subject Re: [Firebird-Java] Simple typing question
Author Yves Glodt
Mark and list,

thanks for your support and ideas.

I found the mistake, it was not related to the column I though. It was a
much more stupid error (Date and Integer don't get along) which came
probably from too late coding...

Best regards,
Yves

On 12 July 2010 09:56, Mark Rotteveel <Avalanche1979@...> wrote:

> I just realised, if you are using that DOUBLE PRECISION as a kind of BIGINT
> (which 1.5 did not yet have) and have no fractional values, you might want
> to try to use a long in your Java code, maybe that does work.
>
> Mark
>
> > I am aware of this... I would really prefer an int. Unfortunately it's a
> > huge prod. database which an not be changed... :-(
> >
> > Thanks for your suggestion in the previous mail, I will try an evening
> (at
> > home).
> >
> > Best regards,
> > Yves
> >
> > On 11 July 2010 14:18, Mark Rotteveel <Avalanche1979@...> wrote:
> >
> > > On 11-7-2010 12:15, Yves Glodt wrote:
> > > > Hi Mark,
> > > >
> > > > here the column definition:
> > > >
> > > > SQL> show table intervention_ligne;
> > > > ...
> > > > NO_INTERVENTION (TDOUBLENN) DOUBLE PRECISION Not Null
> > > >
> > > >
> > > > The relevant part of the annotated class looks like this:
> > > >
> > > > @Id
> > > > @Column(name = "NO_INTERVENTION", nullable = false)
> > > > private Double noIntervention;
> > >
> > > I BTW am not sure if using a Double as an Id column is wise. It could
> be
> > > the source of your problem.
> > >
> > > --
> > > Mark Rotteveel
> > >
> > >
> > > ------------------------------------
> > >
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> >
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
>
> --
> GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.
> Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>


[Non-text portions of this message have been removed]