About long

1-10 of 200Refresh
Forum
29

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 ... static final long serialVersionUID = 1L;     public @Id String id;     @OneToMany(fetch
Forum
25

Lazy loading does not work - crud takes long

.**.Datapoint,com.**.Advalm);         long t0 = System.currentTimeMillis();         projects = service ... , generator = "PROJECT_SEQUENCE")     private Long id;     ..     ..     @OneToMany(cascade
Forum
25

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 ... ? Changing a field from long to String should not require any specific action. Actually such schema
Forum
25

EntityManager.refresh takes a long time

EntityManager.refresh takes a long time for entity object Person in this code:     logger.log(Level.INFO, "begin select for person " + new Date().toString());                TypedQuery personQuery =         em.createQuery("SELECT m FROM Person m", Person.class);     List
Forum
25

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
Forum
25

First persist takes long time

" /> Could you explain the long time for first persist? Some operations are only required for a new
Manual
24

JPA Primary Key

key cannot be modified. It represents the entity object as long as it exists in the database. As ... 64 bit number (long) that is set automatically by ObjectDB for every new entity object that is stored ... key field: @Entity public class Project { @Id @GeneratedValue long id; // still set
Manual
23

JPA Metamodel API

attribute - including inherited: SingularAttributeLong> id1 = entityType.getId(Long.class); // Gets a single ID attribute - excluding inherited: SingularAttributeLong> id2 = entityType.getDeclaredId(Long.class); // Checks if the type has a version attribute
Manual
21

Database Schema Evolution

to any numeric type. In this context numeric types are: byte, short, char, int, long, float, double, Byte, Short, Character, Integer, Long, Float, Double, BigInteger, BigDecimal and enum values ... long as the elements are convertible (e.g. from int[] to ArrayList<Long>). From any object to any
Manual
19

Running JPA Queries [2011-09-21]

object is expected. The following aggregate query always returns a single result object, which is a Long object reflecting the number of Country objects in the database: TypedQuery<Long> query = em.createQuery( "SELECT COUNT(c) FROM Country c", Long.class); long countryCount = query