About false

forum_thread

Should derived fields of an EmbeddedId be manually maintained by app code?

If I have an Entity which has a primary key which is derived and I am implementing it using @EmbeddedId, am I responsible for maintaining the derived fields of the @EmbeddedId? I could not find anything in the JPA 2.0 spec http://download.oracle.com/auth/otn-pub/jcp/persistence-2.0-fr-oth-JSpec/persistence-2_0-final-spec.pdf?e=1317047713&h=54831c176e81a244a4c309e13eba0b27 which tells me what to expect. ... ECompoundKeyMapItemId ) ) return false ; ECompoundKeyMapItemId other = ( ... ECompoundKeyMapSubItemId ) ) return false ; ECompoundKeyMapSubItemId other = ( ... ; container. generateMapItems ( numItems, false , em ) ; long beginCommit = System. ...

 
api-jdo

javax.jdo.PersistenceManagerFactory

The PersistenceManagerFactory is the interface to use to obtain PersistenceManager instances.(Interface of JDO)

 
release

2.5.7

... getSequence ( issue #186 ). Fixed false Doctor warnings when updating the schema using external classes. ... that removes an empty index. Fixed Doctor false alert after changing field type . Fixed an "Unexpected ...

 
forum_thread

Database Inconsistency or corruption

Hi, since a week I have been trying to find a solution to a strange problem. We are using ObjectDB 2.6.8_02 im embedded mode. The problem is that data gets lost when updating an entity. 1-) Background Consider Three entities: ObjectValue, Attribute and Value. ObjectValue has a one to many relationship to Attribute and Attribute has a one to one relationship to Value. ... Name:=null, Value:=null, REVISION:=null, isPersisted:=false ... To confirm that the values are lost, I started the ... revision;   protected boolean markedDeleted = false;   @ManyToOne   private Project project;   ...

 
forum_thread

Optimistic locking: prevent version increment on entity collection attribute

Hello, I have an entity E with an attribute which is a collection of entities (one to many relationship) with an optimistic locking strategy supported by a version field. Is it possible to prevent the increment of the version of entity E when entities are added to or removed from the collection? Something like the equivalent of @OptimisticLock(excluded=true) in Hibernate? Thanks, Farid ... ) ;   // Both these turn out to be false! assertTrue ( readings != null ) ; ... ) ;   // This turn out to be false! assertTrue ( readings != null ) ; ...

 
release

2.5.6

... getSequence ( issue #186 ). Fixed false Doctor warnings when updating the schema using external classes. ... that removes an empty index. Fixed Doctor false alert after changing field type . Fixed an "Unexpected ...

 
forum_thread

Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany

In the code example below (also attached) I would like to understand why I am able to print to console a lazy @OneToMany mapped field after a finding entity manager closes. There is a switch DO_VIEW_BEFORE_CLOSE, and when it is true the fields are accessed and output before the finding entity manager closes and as expected both a mapped @OneToMany list and an unmapped @OneToMany list are viewable: a.listA_mapped:[{A}[4]"ownedElement1", {A}[5]"ownedElement2"] a.listB_unmapped:[{B}[2]"b1", {B}[3]"b2"] ... {B}[3]"b2"] When I set DO_VIEW_BEFORE_CLOSE false, so that the fields are only accessed after the finding entity manager ... gives an empty list [], when DO_VIEW_BEFORE_CLOSE = false. --- Webel IT Australia, "The Elements of the Web", ...

 
forum_thread

Broken @ManyToOne reference

Hi, I have objects of type A belonging to objects of type B, defined as follows: @MappedSuperclass public abstract class A {   @Id   @ManyToOne(fetch = FetchType.EAGER, cascade=CascadeType.ALL, optional=false)   private B b;   @Id   @Column(length = 36)   private String stringId; } @MappedSuperclass public abstract class B {   @Id   private String name; } ... = CascadeType . ALL , optional = false ) private B b ;   @ Id @ ... child. prn instanceof Parent ) ; // false edit ...

 
manual

JPA Entity Fields

Explains how to define and use primary keys in JPA, including composite and embedded primary keys.... be null. See JavaDoc Reference Page... = false ) Integer field1 ; @OneToOne ... values are allowed by default. Specifying optional=false (as demonstrated for field1 ) causes an exception to be thrown on ...

 
release

2.6.0

... getSequence ( issue #186 ). Fixed false Doctor warnings when updating the schema using external classes. ... that removes an empty index. Fixed Doctor false alert after changing field type . Fixed an "Unexpected ...