About persistence

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

 
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-jpa

detach(entity)

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

 
api-jpa

GeneratedValue.strategy

(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)

 
api-jdo

PersistenceModifier.PERSISTENT

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

 
manual

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 ...

 
manual

[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 ...

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

 
api-jpa

GenerationType.IDENTITY

Indicates that the persistence provider must assign primary keys for the entity using a database identity column.(Enum Constant of javax.persistence.GenerationType)