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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -