About string

tutorial

Step 4: Add a Controller Class

Explains how to add a servlet to a NetBeans Spring MVC JPA web application project.... // Handle a new guest (if any): String name = request. getParameter ( "name" ) ; ...

 
forum_thread

Problem with bidirectional link

(I had raised this issue in the past and have finally had time to come back to it and strip down the classes to a minimum). The problem seems to lie in having bidirectional links (viz, I have @OneToMany Map<String, Entry> children and @ManyToOne Entry parent in my classes. I've attached the offending classes. If I add an entry to the children I get an error. I'm wondering if it's a question of multiple references to the same instance of a class? It's hard to tell with the opaque code of ObjectDB. ... having bidirectional links (viz, I have @OneToMany Map<String, Entry> children and @ManyToOne Entry parent in my classes. I've ...

 
issue

500Mb ObjectDb database opening issue

Hi, I have observed that 500 Mb objectDb database opening time is very slow (~3 seconds) for following code m_EntityMgrFactory = Persistence.createEntityManagerFactory( "objectdb:" + aFilename ); m_EntityManager = m_EntityMgrFactory.createEntityManager(); Does exist any way to speed-up open time for big databases? Definitely, it's too long for 500 Mb database! ... ( ) ;   LOGGER. info ( String. format ( "took [%d] ms" , System. currentTimeMillis ...

 
api-jdo

javax.jdo.datastore.Sequence

Implementations of this interface can be used to obtain sequences.(Interface of JDO)

 
forum_thread

Indexing a field results in internal Exception

I have an application that I have been converting from JPA/MySQL to JDO/ObjectDB and I have hit a problem with indexing. An index on a String field is required to give good performance but if I add the @Index annotation to the field I eventually end up with an ObjectDB internal exception.  This is reproducible, as is the program running to completion (slowly) if I remove the @Index annotation.  Is there anything I can look for that might result in this exception? ... and I have hit a problem with indexing. An index on a String field is required to give good performance but if I add the @Index ...

 
api-jpa

isLoaded(entity)

Determine the load state of an entity.(Method of javax.persistence.PersistenceUtil)

 
issue

NullPointer running multiple client against server

Hi, I'm running objectdb in server mode, config as it comes out of the box. In this case the database is being used as a queue with multiple seperate processes, each with multiple threads, writing messages. The message is split into a lightweight metadata message to allow fast searching and a more heavy weight data message. The put methods are shown below. The message is made up of an id, insert-time, priority and the payload is a large string. ... of an id, insert-time, priority and the payload is a large string. public void put ( Message msg ) { ...

 
api-jdo

javax.jdo.identity.SingleFieldIdentity

This class is the abstract base class for all single field identity classes.(Class of JDO)

 
api-jdo

jdoCopyKeyFieldsToObjectId(fm, oid)

Copy fields from an outside source to the key fields in the ObjectId.(Method of javax.jdo.spi.PersistenceCapable)

 
forum_thread

Collection update does not increase entity version and is not persisted

Hello, I found a bug when adding elements to a collection of Entities: Event { Collection<Attachment> attachments; void addAttachment(Attachment attachment) { this.attachments.add(attachment); } } Attachment { String filename } If I call this method (all classes are enhanced) the version of the event does not increase and the updated event is not stored in the database (retrieve the event shows that the attachments field is still empty). ... } } Attachment { String filename } If I call this method (all classes are ...