ObjectDB Database Search

1-50 of 74 results

Items in list are doubled, when the entity class is not enhanced

Dear all, I have a problem with adding items (entities) into other entity list. When the classes are not enhanced, added items are doubled . Here is an example: @Entity public class Customer ... thing - items are also doubled , when the classes are enhanced and before merging the customer object

Double persist of Entity field with Cascade.ALL

would have double entry of same record. Burabari Burabari Kpai For completeness, attached is the modified sample

run several embedded systems on one server, problem with double used port

we want to run several embedded systems on one server. In principle this is working but there are endless logs generated reporting about a double used port. Ist there a possibility to configure that port for each embedded system hgzwicker Hans-Georg Zwicker Are you using embedded-server mode? In

ObjectDB Object Database Features

Recovery from failure by using a  recovery file and  double writing. Additional recovery layer ... , double ). Wrapper types (Boolean, Byte, Short, Character, Integer, Long, Float, Double ). java.lang ... . Primary Key Data Types Primitives (boolean, byte, short, char, int, long, float and double ). Wrappers

Numbers in JPQL and Criteria Queries

of a binary arithmetic operation on an int value and a double value is double . The ABS Function The ABS ... The SQRT function takes as an argument a numeric value of any type and always returns a double value ... , double , BigInteger , BigDecimal ) are supported. Unary Operators Creation of the unary minus

Comparison in JPQL and Criteria API

, including primitive types ( byte , short , char , int , long , float , double ), wrapper types ( Byte , Short , Character , Integer , Long , Float , Double ),  BigInteger and BigDecimal can be compared ... , a double value can be compared to a BigInteger instance but not to a String instance. [NOT] BETWEEN

Database Schema Evolution

, float , double , Byte , Short , Character , Integer , Long , Float , Double , BigInteger , BigDecimal

Database Explorer

directory a path to it has to be specified. Alternatively, you can run the Explorer by double clicking ... and Table viewer windows. Double click the field, press F2, or simply type the new value. Use

Index Definition

: Primitive types: boolean , byte , short , char , int , long , float , double . Equivalent wrapper classes from package java.lang: Byte , Short , Character , Integer , Long , Float , Double . java.math

JPA Primary Key

, char , int , long , float , double . Equivalent wrapper classes from package java.lang: Byte , Short , Character , Integer , Long , Float , Double . java.math.BigInteger , java.math.BigDecimal. java

JPA Persistable Types

, byte , short , char , int , long , float and double . Equivalent wrapper classes from package java.lang: Boolean , Byte , Short , Character , Integer , Long , Float and Double . java.math.BigInteger

Literals in JPQL and Criteria Queries

: 100L, -127L, 0L, 07777L float : 3.14F, 0f, 1e2f, -2.f, 5.04e+17f double : 3.14, 0d, 1e2D, -2., 5.04e ... in which strings are enclosed with double quotes (e.g. "Adam" , "" ) and Java escape characters

GROUP BY and HAVING clauses

of numeric values. AVG - returns the average of numeric values as a double value. MIN - returns the minimum ... - returns a double type expression representing the average of numeric values. min , least - return

Entity Management Settings

. Usually, commit time only cascade (which is more efficient than double cascade) is sufficient

[ODB1] Chapter 7 - JDOQL Queries

.04e+17f , ... double 3.14, 0d, 1e2D, -2., 5.04e+17 , ... char 'x', '@', '\n', '\\', '\'', '\uFFFF ... , Double ), as well as BigInteger and BigDecimal can participate in comparisons as if they were primitive numeric types ( byte , short , char , int , long , float , double ). Logical Operators Logical

Geospatial functions

given latitude/longitude) ?Normally you would calculate the distance like: double cx = Math.toRadians(fromLat); double cy = Math.toRadians(fromLon); double px = Math.toRadians(toLat); double py = Math.toRadians(toLon); // see http://de.wikipedia.org/wiki/Orthodrome double gamma = Math.acos(Math.sin

significant performance decrease

systemDictionary = new HashMap (); @Index public Integer type; public Double usedCustomObjectTypeVersion; public Double usedStandardObjectTypeVersion; public Double usedSolutionObjectTypeVersion ... change). support Support just to double -check, if the query string is the same, the query program cache

Step 2: Entity Class and Persistence Unit

clicking and selecting Edit or by double click and then moving to the Source or XML tab in

Step 2: Entity Class and Persistence Unit

a text editor (by right clicking and selecting Edit or by double click and then moving to the XML

Step 6: Set the Spring XML

clicking and selecting Edit or by double click and then moving to the XML tab in the editor window

Step 6: Set the Spring XML

editor (by right clicking and selecting  Open With Text Editor or by double click

Updating Entities

.setCellFactory(c - new TableCell () { @Override public void updateItem(final Double item, boolean empty ... tried this... public static void modifyPaygradeRate( double oldRate, double newRate) { System.out.println

[ODB1] Chapter 9 - ObjectDB Explorer

ObjectDB's lib directory. Because this file is an executable jar, on most systems, you can double click ... | Open Focus Selection" command switches the current viewer to focus on the selected object. A double ... select it in a viewer window (browser or table). You can start editing a value field by double

javax.persistence.criteria.CriteriaBuilder

-valued expression, returning a Double result. Parameters: x - expression representing input value ... : number - numeric expression Return: Expression< Double > Since: JPA 2.0 Expression toFloat

Can a Set be a foreign key?

;   private double cellSize;     private Set cellHeldCharacters ... ;     private Location cellLocation;     private double

Cascade type annotaion on an embeddable type

Assume we have the following classes: @Entity public class Restaurant { /* @Embedded */ private Location location;     private int phoneNumber; } @Embeddable public class Location { private double latitude; private double longitude; } According to the documentation

[ODB1] Chapter 3 - Persistent Classes

, int , long , float and double . Selected classes in package java.lang : Boolean , Byte , Short , Character , Integer , Long , Float , Double , Number and String . Selected classes in package java

[ODB1] Chapter 4 - JDO Metadata

: embedded value types: primitive type ( boolean , byte , short , char , int , long , float or double ) embedded wrapper ( Boolean , Byte , Short , Character , Integer , Long , Float or Double ) embedded

javax.persistence.ConstructorResult

(name="orderCount"), @ColumnResult(name="avgOrder", type= Double .class

CriteriaBuilder.sumAsDouble(x) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Expression sumAsDouble (    Expression  x ) Create an aggregate expression applying the sum operation to a Float-valued expression, returning a Double result. Parameters: x - expression representing input value to sum operation Return: sum expression Since: JPA 2.0

CriteriaBuilder.toDouble(number) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Expression toDouble (    Expression  number ) Typecast. Returns same expression object. Parameters: number - numeric expression Return: Expression< Double > Since: JPA 2.0

Running ObjectDB on a node that does not have internet connectivity

The package.jdo files already begin with the line: However, after double checking that line, I did

Doctor - high memory usage

threshold and didn't notice that - sorry. After double checking, every thing works exactly as you say. Thanks for explanation. lwalkowski Lukasz Walkowski

Safe Settings

2 separate mechanisms for recovery from failure: Recording (transaction log). Recovery ( double

Database size is much larger than expected (x2)

, the codes show the version 2.2.9_3 is doubling the size: import static util.SingleManager.em; import static

Explorer in 2.3

. For example, I double click on a String field in an entity. Right now, all I can do is type some text

LDAP and ObjectDB

Hello, Is there any advantage in using LDAP with ObjectDB? I notice that I would still have to query the config for the credential, as well as query LDAP, a doubling of the work.   Thanks st.clair.clarke St Clair Clarke Most applications manage users and permissions in the database

Problem with Criteria Querys

.createEntityManager();         em.getTransaction().begin();         for ( double i=0.0; i

Database access error , Doctor hanging on trying to repair, production shutdown at our biggest customer

. Could you please double check it (sometimes the old objectdb.jar file remains in the classpath and the wrong ... versions with the concurrent read queries that have been solved for us with that version. We double

Best practise loading big data

to the internet (e.g. to Dropbox) and share the link. support Support Before uploading the heap dump: Double ... a configuration with the attached configuration ( double checked) - one open transaction - reading

javax.jdo.spi.StateManager

for the field Since: JDO 1.0 double getDoubleField (PersistenceCapable pc, int field,  double  currentValue) Return the value for the field. Parameters: pc - the calling ... ,  double  currentValue) The value of the field requested to be provided to the StateManager

ObjectDB 2 JDO Manual

Support First, my apologies for the double post; I didn't see my first and thought for some reason

Server out of memory exceptions

. felixobjectdb Richard Szurgot Sorry! - I've double checked the test and it is bad. I'm not clearing

Eager load Map

build? support Support That's odd... I went back to double check and I'm definitely using 2.3.2_04. I

StateManager.getDoubleField(pc,field,currentValue) - JDO Method

JDO Method in javax.jdo.spi.StateManager double getDoubleField (   PersistenceCapable pc,    int field,     double  currentValue ) Return the value for the field. Parameters: pc - the calling PersistenceCapable instance field - the field number

StateManager.setDoubleField(pc,field,currentValue,newValue) - JDO Method

JDO Method in javax.jdo.spi.StateManager void setDoubleField (   PersistenceCapable pc,    int field,     double  currentValue,     double  newValue ) Mark the field as modified by the user. Parameters: pc - the calling

javax.jdo.Query

, Double , String, or Object[]; or one of the java.math classes BigInteger or BigDecimal; or the java

Query.setResultClass(cls) - JDO Method

, Integer, Long, Float, Double , String, or Object[]; or one of the java.math classes BigInteger or

StateManager.providedDoubleField(pc,field,currentValue) - JDO Method

JDO Method in javax.jdo.spi.StateManager void providedDoubleField (   PersistenceCapable pc,    int field,     double  currentValue ) The value of the field requested to be provided to the StateManager . Parameters: pc - the calling

StateManager.replacingDoubleField(pc,field) - JDO Method

JDO Method in javax.jdo.spi.StateManager double replacingDoubleField (   PersistenceCapable pc,    int field ) The replacement value of the field in the calling instance. Parameters: pc - the calling PersistenceCapable instance field - the field number Return: the new value for the field Since: JDO 1.0