About persist

api-jdo

makePersistent(pc)

Make the parameter instance persistent in this PersistenceManager.(Method of javax.jdo.PersistenceManager)

 
forum_thread

Performance in large transactions

Hello, we have a performance problem when we use a large transaction. Let's do exactly the same in several transactions the ObjectDB works much faster. In our use case, we create many new entities and between the creations we call a select query. The execution of the query becomes slower at each iteration. (In the query, we search for an item of type Entity2. However, there is only one entity.)   Pseudocode for the fast and the slow solution FAST: ... em. persist ( myEntityElement ) ; }   ... em. persist ( myEntityElement ) ; em. getTransaction ...

 
forum_thread

Error 613 - i cant put a list<Athlete> into a Squad object

hey guys Im a swiss student and my english is not that good and ive never posted in your forum, so thats why im sorry if im doing any mistakes, but i have big trouble, because ive to get this straight till end of week. i uploaded also all classes but if u see the problem in the main problem field the classes are copied after the problem description. the structure: ... of field test.Squad.athlets using reflection: Attempt to persist a reference to a non managed 'test.Athlet' instance (error ... of field test.Squad.athlets using reflection: Attempt to persist a reference to a non managed 'test.Athlet' instance at ...

 
forum_thread

Possible issue with timestamps

Hi, If I query doing something like: select c from CDI c where c.creationDate > {ts '2012-03-29 11:00:00} and c.creationDate < {ts '2012-03-29 12:00:00'} the test fails. Its ONLY for 12:00:00. When I started digging I found that if I queried 00:00:00 to 00:25:00 and then did 12:00:00 to 12:25:00 I got IDENTICAL results. For some reason 12:00:00 is being treated the same as 00:00:00. All other hours seem to be fine. ... ( ) ) ;   em. persist ( cdi1 ) ; em. persist ( cdi2 ) ; em. persist ( cdi3 ) ...

 
api-jpa

GenerationType.TABLE

Indicates that the persistence provider must assign primary keys for the entity using an underlying database table to ensure uniqueness.(Enum Constant of javax.persistence.GenerationType)

 
api-jpa

flush()

Synchronize the persistence context to the underlying database.(Method of javax.persistence.EntityManager)

 
api-jdo

PersistenceModifier.PERSISTENT

(Enum Constant of javax.jdo.annotations.PersistenceModifier)

 
issue

Issues with JDO Casting & Full Qualified Names

hi! See this query and the comments about failures. This is really urgent for us because as you've stated, this is the only workaround for now to proper casting AND map KEY access though it isn't working correctly either.. ... , new EmbeddedB ( ) ) ; em. persist ( entity ) ; em. getTransaction ( ... EmbeddedB ( ) ) ; em. persist ( entity ) ; em. getTransaction ( ...

 
manual

[ODB1] Chapter 9 - ObjectDB Explorer

Explains how to view and manipulate database files in the database explorer. ObjectDB Explorer is a visual tool for managing ObjectDB databases. You can use the Explorer to browse databases, execute JDOQL queries, create new databases and edit the content of existing databases. This chapter contains the following s ...

 
manual

JPA Primary Key

Explains how to define and use primary keys in JPA, including composite and embedded primary keys.... primary key field. That must be done before any attempt to persist the entity object: @Entity javax.persistence.Entity ...