[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.rt.eclipselink] Re: Negative Ids

I tried to enable the zero id value:

<property name="eclipselink.allow-zero-id" value="true"/>

what happen now is that it seems there is some kind of conflict with the @GeneratedValue in my Entity. Trying to make 2 entities persistent does not work..just one is stored on DB, while the other is niot stored (like both entities have the same id = 0, and only one is persistent).
Enabling the finest eclipse logging I see only one insert event if I have two entities object.


Any suggestion?

BR,
Enrico

Enrico ha scritto:
Hi All,

in my DB I have tables with negative id fields.
It seems I have problem when I work with negative id using eclipselink (1.1.1). I know there is option (in persistence.xml) to allow zero id values...but for negative values it should work or there is some option to enable?


BR,
Enrico