Re: Filtering with Long values

2020-01-20 Thread Vemund Jakobsen
Thanks for the tip! I will try that. On 2020/01/20 08:21:31, Andrus Adamchik wrote: > Hi Vemund, > > Try changing the format to add "L" at the end: "2284222503L". This form will > be parsed as Long. > > Andrus > > > On Jan 20, 2020, a

Filtering with Long values

2020-01-19 Thread Vemund Jakobsen
Hi, I'm using Cayenne 4.0.2 and am trying to filter with Long values, but I get the exception below. Am I doing something wrong or are there other ways of filtering? I do not see any method called makeLong in the ExpressionParserTokenManager class. 08:24:08,623 ERROR [stderr] (default task-2)

Re: Long primary keys

2019-11-15 Thread Vemund Jakobsen
ribute that overrides it > with an explicit Java type) you'll get a Long. > > (BTW, you don't seem to be subscribed to the list.. The original message came > through moderation. I hope you didn't miss the earlier replies). > > Andrus > > > On N

Re: Long primary keys

2019-11-14 Thread Vemund Jakobsen
on the the same object and it has foreign key ref. to another table with long key, I will get the error in my initial post. On 2019/11/13 11:12:25, Vemund Jakobsen wrote: > Hi, > > I'm running a Oracle database and trying to get Cayenne to work when having > primary keys that

Long primary keys

2019-11-13 Thread Vemund Jakobsen
Hi, I'm running a Oracle database and trying to get Cayenne to work when having primary keys that should be mapped to Long in Java. The data type in Oracle is NUMBER(38), but when I create a SelectQuery and use DlpObject object= (DlpObject) Cayenne.objectForQuery(ctx, this); to get the object,