About math

manual

Numbers in JPQL and Criteria Queries

Shows how numbers, arithmetic expressions and numeric functions and operators (MOD, ABS) can be used in JPQL queries. Numeric values may appear in JPQL queries in many forms: as  numeric literals - e.g. 123 , -12.5 . as parameters - when numeric values are assigned as arguments. as  path expressions ...

 
forum_thread

Geospatial functions

Hi, is it possible to implement geospatial functions (e.g. calculating distance between too points given latitude/longitude) ?Normally you would calculate the distance like: ... calculate the distance like: double cx = Math. toRadians ( fromLat ) ; double cy = Math. toRadians ( fromLon ) ; double px = Math. ...

 
page

ObjectDB Object Database Features

ObjectDB provides a rich set of features, many of them as the result of supporting the JPA and JDO APIs.... Math types : java.lang.BigInteger and java.lang.BigDecimal. ... java.sql.Timestamp. Math: java.lang.BigInteger and java.lang.BigDecimal. ...

 
forum_thread

Handling "is null" in where clause

Greetings, I was playing aroung with JPQL and have found that there is a problem with "is null" queries. When you use "is null" in where clause, query runs correctly, but results are incorrect. Let me show you an example: - entity @Entity public class EntityA { @Id Integer id; Integer simpleField; (getters and setters here) - populating database... ( x ) ;   if ( Math. random ( ) < 0.5 ) { a. setSimpleField ( new Double ( Math. random ( ) * 1000 ) . intValue ( ...

 
manual

JPA Persistable Types

Explains how JPA manages types, including entity classes, embeddable classes, primitive types, wrappers, string, date, enum, collections and maps.... data types: Primitive types, Wrappers, String, Date and Math types. Multi value types - Collections, Maps and Arrays. ... , Long , Float and Double . java.math.BigInteger , java.math.BigDecimal . java.lang.String ...

 
issue

ObjectDB can't be activated

Hello, we are trying to activate objectdb on a virutalized debian 7 server, but do not have any success. Steps we made to activate the server: ... the server and post the output: import java. math . *; import java. net . *; import java. util . *; ... . UnsupportedEncodingException ; import java. math . BigInteger ; import java. net . NetworkInterface ; ...

 
forum_thread

Problem with @UniqueConstraint

It seems there is a problem with @UniqueConstraint. Same annotations using hibernate works fine - an error will be thrown - duplicate name. ObjectDB - no exception will be thrown. with best regardsPeter... int r = ( int ) ( Math. random ( ) * 1000000 ) ; ...

 
issue

[ObjectDB 2.2.6_02] Unexpected exception (Error 990) at com.objectdb.o.OBC.aJ(OBC.java:961)

I was experiencing an exception so I did a test to reproduce it.   here it is. ... . error ;   import java. math . BigInteger ; import java. util . Calendar ; import ...

 
forum_thread

Explorer in 2.3

First, the new Explorer in ObjectDB is fantastic! This is exactly what we've needed - an easy way to do ad-hoc JPQL queries and navigate through the results and even make small changes to primitive data and Strings. After playing with it for a while, here is a list of additional features I'd love to have: 1. Export of selected data: a. Simple - Select a range of cells or a column header and copy text to the clipboard or save to a file (csv, html, etc..). (There appear to be copy menu options, but I cannot get them to work.) ... invoke static methods. Try for example: SELECT Math . random ( ) Fully qualified class names have to ...