About long

manual

JPA Persistable Types

Explains how JPA manages types, including entity classes, embeddable classes, primitive types, wrappers, string, date, enum, collections and maps.... boolean , byte , short , char , int , long , float and double . Equivalent wrapper classes from ... , Byte , Short , Character , Integer , Long , Float and Double . java.math.BigInteger , ...

 
forum_thread

persisting object with long[][] arrays of array

Hi, I have an object I am trying to persist (java) - It has several fields of type long[][]. It is taking very long to persist and sometimes never finish - it hangs on getTransaction().commit(); Here is the object: ... trying to persist (java) - It has several fields of type long[][]. It is taking very long to persist and sometimes never finish - it hangs on ... { private static final long serialVersionUID = 1L ; public @ Id String id ...

 
manual

Database Schema Evolution

Explains how ObjectDB handles automatically schema changes.... types are: byte , short , char , int , long , float , double , Byte , Short , Character , Integer , Long , Float , Double , BigInteger , BigDecimal and enum values ...

 
api-jdo

setRange(fromIncl, toExcl)

Set the range of results to return.(Method of javax.jdo.Query)

 
forum_thread

Lazy loading does not work - crud takes long

tomee7.0.0SNAPSHOT,objectdb 2.6.4 The OneToMany Entities are filled with 40.000 Records and they have between 20-40 Columns. It takes over 50s to load all Project Enities that contains the OneToMany Relationships. It should be load lazy but i didnt know why the query fetch all the Data. ... "com.**.Project,com.**.Datapoint,com.**.Advalm); long t0 = System.currentTimeMillis(); projects = ... = "PROJECT_SEQUENCE" ) private Long id ; .. .. @ OneToMany ( cascade = ... overflow of published source code examples by breaking long lines . You may mark in paragraph code words (e.g. class ...

 
forum_thread

Schema migration - long to String

Hi, I need to change field type in our model from long to String. After changing filed type in our model and repairing database with doctor, most of our entities is gone. Doctor puts some errors on console: ... Hi, I need to change field type in our model from long to String. After changing filed type in our model and repairing database ... Changing a field from long to String should not require any specific action. Actually ...

 
forum_thread

Explorer shows Long id, but should be Integer

Hi! I have seen a strange behavior of ObjectDB Explorer: it shows @Id as being Long, not Integer as it's normally declared in the java class. This happens now with all entities in all 3 databases used for one project. If I open one of the entities in the explorer, then I click on it's id (in the sample on parts of the Embedded id) as if I would want to edit, then I press enter and ObjectDB Explorer shows the field type as Integer, as it should normally be. I have attached just a small sample to see. ... behavior of ObjectDB Explorer: it shows @Id as being Long, not Integer as it's normally declared in the java class. This happens ... overflow of published source code examples by breaking long lines . You may mark in paragraph code words (e.g. class ...

 
forum_thread

First persist takes long time

We detected that the first Persist() of an entity take much longer than all subsequent calls. We have a small example (see Appendix) which outputs the following times: ... = "true" /> Could you explain the long time for first persist? ... overflow of published source code examples by breaking long lines . You may mark in paragraph code words (e.g. class ... (can be applied by ctrl + D). Long stack traces (> 50 lines) and complex source examples (> 100 lines) ...

 
forum_thread

EntityManager.refresh takes a long time

EntityManager.refresh takes a long time for entity object Person in this code: ... EntityManager.refresh takes a long time for entity object Person in this code: logger. log ... overflow of published source code examples by breaking long lines . You may mark in paragraph code words (e.g. class ...

 
forum_thread

Persist error @ManyToMany how to define correct entities relationships

I have Product entities containing a list of Category enties. Each product can have multiple Category but all sue the same limited set of Category entities. There is not changes made to Category from Product. The category ID is taken from the webservice Object ID (unique too). ... @ GeneratedValue   private long id ;   @ ManyToMany ( cascade = ...   @ Id   private long id ;   public Category ( int id ) ...