About persistence



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


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: ... java. util . List ;   import javax. persistence . CascadeType ; import javax. persistence . ElementCollection ; import javax. persistence . ...


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: ... Exception in thread "main" [ObjectDB 2.2.0] javax.persistence.RollbackException Failed to commit transaction: Failed to write the ... java. util . List ;   import javax. persistence . Entity ; import javax. persistence . ...


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. ... javax. jdo . annotations . *; import javax. persistence . *;   import org. junit . *;     ... EntityManagerFactory emf = Persistence . createEntityManagerFactory ( ...



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)



Remove the given entity from the persistence context, causing a managed entity to become detached.(Method of javax.persistence.EntityManager)



(Optional) The primary key generation strategy that the persistence provider must use to generate the annotated entity primary key.(Annotation Element of javax.persistence.GeneratedValue)


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.. ... java. util . Map ;   import javax. persistence . Embeddable ; import javax. persistence . Entity ; import javax. persistence . ...


[ODB1] Chapter 9 - ObjectDB Explorer

Explains how to view and manipulate database files in the database explorer. ... (by navigation from Extent objects or from roots using persistence reference fields) are deleted from the database. The "Rebuild All ...


JPA Primary Key

Explains how to define and use primary keys in JPA, including composite and embedded primary keys.... declaring a primary key field: @Entity javax.persistence.Entity JPA annotation Specifies that the class is an ... public class Project { @Id javax.persistence.Id JPA annotation Specifies the primary key of an ...