About modify

issue

No Entity Class API

Both JPA and JDO are based on accessing and managing data in the database using persistable classes (mainly entity classes in JPA or persistence capable classes in JDO). Sometimes, it might be useful to access data without classes. For example, a tool that finds and replaces strings in the database should be generic and should not be bound to specific entity classes and persistent fields. An API for accessing (and maybe also modifying) data in the database without classes can be useful in some applications. Feature Request Version: Priority: Normal Status: Active Replies: 3 Type:  Feature Request ...

 
forum_thread

Problem with byte arrays in JDO - ClassCastException

A bizarre ClassCastException is thrown if I attempt to obtain a byte array field as the result of a Query: Exception in thread "main" java.lang.ClassCastException: java.lang.Boolean cannot be cast to [B at spiffy.test.ObjectdbTest.main(ObjectdbTest.java:44) #1 2017-09-13 03:33 A bizarre ClassCastException is thrown if I attempt to obtain a byte array field as the result of a Query: ...

 
release

2.2.1

Release date: 2011-04-10 Download (5.07 MB) Binary:  objectdb-2.2.1.zip You should start by following a  tutorial or reading the manual ...

 
release

2.4.1

Release date: 2012-06-16 Download (5.4 MB) Binary:  objectdb-2.4.1.zip You should start by following a  tutorial or reading the manual ...

 
manual

CRUD Database Operations with JPA

Shows how to use Java/JPA to store, retrieve, update & delete.... ( ) ; Operations that modify the content of the database (such as storing new objects) require an ... to obtain a managed entity object (e.g. by retrieval) and modify it within an active transaction: em. getTransaction ...

 
issue

query.getResultList() throws ClassCastException

I modified the example code to include an index on the Point class like so:     @Index(members={"x","y"}) Then when I run the following query:     TypedQuery<Point> query = em.createQuery("SELECT p FROM Point p where p.x <= :x and p.y >= :y",         Point.class); I get the exception at the end.  I do not get an exception if I: Bug Version: 2.3.0 Priority: Normal Status: Fixed Replies: 3 Type:  Bug ...

 
release

2.4.0

Release date: 2012-05-20 Download (5.4 MB) Binary:  objectdb-2.4.0.zip You should start by following a  tutorial or reading the manual ...

 
manual

Working with JPA Entity Objects

Explains the entity object lifecycle and the persistence context. Entity objects are in-memory instances of entity classes (persistable user defined classes), which can represent physical objects in the database. Managing an ObjectDB Object Database using JPA requires using entity objects for many oper ...

 
release

2.2.0

Release date: 2011-04-03 Download (3.99 MB) Binary:  objectdb-2.2.0.zip You should start by following a  tutorial or reading the manual ...

 
manual

Detached Entity Objects

Explains detached entity objects and how to work with detached objects in JPA, including merging them into an EntityManager.... when merge is called because operations that might modify the database require an active transaction. Cascading Merge ...