ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh
171

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
153

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 ... ? lwalkowski Lukasz Walkowski Changing a field from long to String should not require any specific action
153

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
152

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<Person> personQuery =         em.createQuery("SELECT m FROM Person m", Person.class);     List<Person
152

First persist takes long time

" /> Could you explain the long time for first persist? btc_es BTC EmbeddedSystems Some operations
152

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
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 ... key field: @Entity public class Project { @Id @GeneratedValue long id; // still set
22

JPA Metamodel API

ID attribute - including inherited: SingularAttribute<MyEntity,Long> id1 = entityType.getId(Long.class); // Gets a single ID attribute - excluding inherited: SingularAttribute<MyEntity,Long> id2 =   entityType.getDeclaredId(Long.class); // Checks if the type has a version
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
2

[ODB1] Chapter 7 - JDOQL Queries

, 0xFFFF, 07777, ... long 2003L, -127L, 0L, 0xFFFFL, 07777L, ... float 3.14F, 0f, 1e2f, -2.f, 5.04e+17f ... (Byte, Short, Character, Integer, Long, Float, Double), as well as BigInteger and BigDecimal can participate in comparisons as if they were primitive numeric types (byte, short, char, int, long, float

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support