how to write a OQL query comparing with number -


this oql query have written

select * myclass.session ses ses.creationtime <= 1391171576144 

i following error when execute query

java.lang.numberformatexception: input string: "1391171576144"      @ java.lang.numberformatexception.forinputstring(numberformatexception.java:65)      @ java.lang.integer.parseint(integer.java:495)      @ java.lang.integer.parseint(integer.java:527) 

the attribute value

type|name |value

long|creationtime|1391172135198

you need add l @ end; otherwise, 1391171576144 interpreted integer:

select * myclass.session ses ses.creationtime <= 1391171576144l 

Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -