About false

forum_thread

LAZY @ManyToOne field functions as EAGER

In the code example below (also attached) I would like to understand why I am able to print to console a lazy @ManyToOne field after the 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 LAZY @ManyToOne field and an EAGER @ManyToOne field are viewable: b.cLazy:{C}[2]"cLazy"
 b.cEager:{C}[3]"cEager" ... But when I switch DO_VIEW_BEFORE_CLOSE to false, so that the fields are only accessed after the finding entity manager ... static boolean DO_VIEW_BEFORE_CLOSE = false ;   /** * @param args the command line arguments ...

 
release

2.5.2

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

Composite indexes

Hi, I read your manual about defining Indexes for JPA Entities (http://www.objectdb.com/java/jpa/entity/index), but I still have some problems understanding how and when should I use them.   Let's start with some example then. Assume we have an entity that represents an interior design image, called Inspiration : ...   Boolean isPublished ; // either true or false   ( ... ) }   Here ... (like for example "isPublished" which is either true or false, then "room" which has 7-8 unique values etc...) #2. Can I use ...

 
api-jpa

javax.persistence.MapKeyColumn

Specifies the mapping for the key column of a map whose map key is a basic type.(Annotation of JPA)

 
forum_thread

Where Does ObjectDB Block/Lock?

These are questions asked in the context of the proposed architecture described in the forum thread titled, "Sample JDO Architecture for Follow Up Questions".   Questions about blocking/locking.  With my PersistenceManager multiThreaded=true architecture, I desire to know where ObjectDB is actually blocking/locking so I might adapt to achieve better concurrency. 1) Where are locks when accessing PersistenceManager by multiple threads? 2) Does it lock at PersistenceManager.currentTransaction()? ... 3) Does it lock at transaction.begin() if optimistic=false?  4) Does it lock at transaction.commit() if ... suggests datastore transactions (optimistic=false) would be faster.  With my described multithreaded and queued ...

 
api-jpa

javax.persistence.criteria.Subquery

The Subquery interface defines functionality that is specific to subqueries.(Interface of JPA)

 
forum_thread

Need disk usage and delete some old files

    Hello , is it possible to get disk usage of database ? If disk usage becomes too high , delete old date files from database. And recalculate disk usage back ?   ... ( host, port, username, password, false ) ; and specific directory (and possibly file) ... ( host, port, username, password, path, false ) ;   ObjectDB Support ...

 
forum_thread

Access entity version before commit transaction

Hi, I have a usecase where I need to write the updated entity id to the database before commiting the transaction: 1. Change entity field e.g. from a to b 2. Create a change entry in database containing the new version of the entity ... flight = transaction. getEntity ( id, false ) ; flight. setTitle ( "New" ) ... flight = transaction. getEntity ( id, false ) ; flight. addTicket ( "1" ) ...

 
forum_thread

Version 2.2.7 build 7/8 issue

Hi all, I have problems with builds 7 and 8 when trying to sort entities with mappedBy and my own method in query. This query "SELECT c FROM Customer c order by c.getNormalizedName()" returns List with null objects! With builds 6 and 5 works it correctly. Removing mappedBy from @OneToOne(mappedBy = "address") also helps. My code: ...   @ Basic ( optional = false ) private String name ;   @ OneToOne ... = FetchType . EAGER , optional = false ) private Address address ;   public ...

 
issue

ObjectDB enhancement fails on "is" form for @Transient boolean isLoaded(), ok for "getter" form @Transient boolean getLoaded()

Older objectdb-2.4.0_06, Java6. For the following (note the use of "is" form) in a class Element I encounter ObjectDB enhancement errors: ... errors: private boolean loaded = false ;   @ Transient @ Override ... form: private boolean loaded = false ;   @ Transient @ Override ...