About persistence

forum_thread

Wrong data stored in time only fields

This may be related to the fix for the problem described in this thread: Wrong data stored in date only fields. The object and its date and time fields are the same as in the referenced thread. Except we are using ObjectDB 2.6.4_08, the system time zone is set to EST and both the OS and JVM are using the 2015g time zone data. ... java. util . List ;   import javax. persistence . Basic ; import javax. persistence . Entity ; import javax. persistence . ...

 
forum_thread

Database connection url

I'd like to run a database called db1.odb on port 6136, and simultaneously open it in the explorer. I left the conf file set as: <server> <connection port="6136" max="100" /> <data path="$objectdb/db-files" /> </server> However, I'm not sure about the connection url for the code, and for the explorer. I tried this: Transactor.emf = Persistence.createEntityManagerFactory ("$objectdb/db1.odb");... I tried this: Transactor. emf = Persistence . createEntityManagerFactory ( "$objectdb/db1.odb" ... url. See: http://www.objectdb.com/java/jpa/persistence/overview#EntityManagerFactory ObjectDB ...

 
api-jpa

EnumType.STRING

Persist enumerated type property or field as a string.(Enum Constant of javax.persistence.EnumType)

 
forum_thread

Database(*.odb) file size on disk

Hello, we have questions about the file size of ObjectDB database on disk. Can you tell us something about how the deleting of entities affects the size of *.odb files on disk? -Will the released memory always used by new entities? -Will be the database file automatically reduced?   We have created a small test, in which we create and delete entities. It looks like that the released memory are reused but the the file not resized. The database is at the end empty again, but larger than the initial size. ... java. util . List ;   import javax. persistence . Basic ; import javax. persistence . CascadeType ; import javax. persistence . Entity ; import javax. persistence . ...

 
api-jpa

EnumType.ORDINAL

Persist enumerated type property or field as an integer.(Enum Constant of javax.persistence.EnumType)

 
api-jpa

MapKey.name

(Optional) The name of the persistent field or property of the associated entity that is used as the map key.(Annotation Element of javax.persistence.MapKey)

 
issue

Strange Error with Criteria API and Sorting

We're creating a simple selection (distinct) including an order clause. When watching the created criteria in debugger we get the correct expression: SELECT DISTINCT $1 FROM MyEntity $1 WHERE ((TYPE($1)=class test.MyEntity)) ORDER BY UPPER($1.name) DESC You can see that in the order by there's correctly a "$1" var. Running this (without the type thing before) in the explorer correctly returns the sorted results. However, running this with the criteria API produces this error: ... java. util . List ;   import javax. persistence . Entity ; import javax. persistence . EntityManager ; import javax. persistence . ...

 
forum_thread

objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc-check") vs. generic classes with interfaces: detailed investigation

objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc-check" system property) The following is a detailed report on investigation of multiple issues that have been mentioned in the following forum postings and issue reports (but please do not visit them from here now, the diagnostics there are now obsolete): - Issue #282 - ObjectDB-2.6.9: Failed to commit transaction: Failed to set numeric value of field property Element.id using reflection ... [EDIT: contrary to my original report, to prevent the persistence error one can explicitly ... does NOT report on anything other than errors during persistence, that is no conclusions are drawn yet about whether ObjectDB can ... = oldValue ; } Result: on persistence an error occurs: Persist project.. Exception in thread "main" ...

 
api-jpa

javax.persistence.metamodel.Metamodel

Provides access to the metamodel of persistent entities in the persistence unit.(Interface of JPA)

 
forum_thread

Need help to make this test work and define proper annotations for entities Lists

Hi, I can't get this simple test case to work, i know it is probably due to the lack of proper annotations on entities list, could anyone help me to define them? NB in this test case I didn't set all entities methods for the sake of clarity, also in actual application no field are public nor static and no entity is static.    ... import java. util . List ; import javax. persistence . Entity ; import javax. persistence . EntityManager ; import javax. persistence . ...