About modify

manual

What's next?

References to further reading about JPA and ObjectDB. This chapter introduced the basic principles of using JPA with ObjectDB. You can dive into the details by reading the other chapters of this manual. If you prefer to get started using ObjectDB right away you can follow one of these tutorials to creat ...

 
forum_thread

Optimistic lock

Hello When I get an optimistic lock on an object, refresh(), start trans and persist?  Will the changes made to the object before the violation be retained or must they be duplicated in the retry code?  Assuming it affects only one object.  tia. ... code based. I have retrieved an object under a pm, modify the object and I want to trap optimisticLocking exception.  In the ...

 
forum_thread

String Encoding Issue

Hi all Encounter a character encoding issue when i try to retrieve a String column containing Chinese character. Retrieve a String column on odb file.  em = emf.createEntityManager(); Query query = em.createQuery("SELECT fu FROM FarmUnit fu"); But, when try to print the value out as: ... ObjectDB does not modify strings - when you retrieve a string from an ObjectDB database you ...

 
forum_thread

WORM (Write once read many) support

Hello, we would like to propose a feature in the objectdb if this is not already available. We use objectdb in our product development and deployment in high secure environments like police, military and government agencies. We have developed a specialized hardware device in a form of appliance which acts as archiving device for processing and storing logs, records and transactions. Hardware is specific in a way that it has a mechanism for preventing the data to be changed once they are written. #1 2017-02-12 10:45 Hello, we would like to propose a feature in the objectdb if this is not already available. We use objectdb in ou ...

 
api-jpa

groupBy(grouping)

Specify the expressions that are used to form groups over the subquery results.(Method of javax.persistence.criteria.Subquery)

 
api-jpa

groupBy(grouping)

Specify the expressions that are used to form groups over the query results.(Method of javax.persistence.criteria.CriteriaQuery)

 
forum_thread

Primary key generation problem after changing entity package

Hi, I changed package name for some of my entities in database. I added info in <schema><package... /></schema> of my configuration file - and the changes have been succesfully made in database. Unfortunately, sequences have been probably lost for changed entity classes. After schema change I keep getting errors : Attempt to reuse an existing primary key value... My primary keys are annotated as shown below : ... 11:41 Also, when I modify initialValue parameter of existing SequenceGenerator - no changes are ...

 
api-jdo

retrieveAll(pcs, useFetchPlan)

Retrieve field values of instances from the store.(Method of javax.jdo.PersistenceManager)

 
api-jdo

setRestoreValues(restoreValues)

Set the default value for the RestoreValues property.(Method of javax.jdo.PersistenceManagerFactory)

 
api-jdo

setStringField(pc, field, currentValue, newValue)

Mark the field as modified by the user.(Method of javax.jdo.spi.StateManager)